#ifndef CONTENT_PUBLIC_BROWSER_GLOBAL_ROUTING_ID_H_
#define CONTENT_PUBLIC_BROWSER_GLOBAL_ROUTING_ID_H_
namespace content {
struct GlobalRoutingID {
GlobalRoutingID() : child_id(-1), route_id(-1) {
}
GlobalRoutingID(int child_id, int route_id)
: child_id(child_id),
route_id(route_id) {
}
int child_id;
int route_id;
bool operator<(const GlobalRoutingID& other) const {
if (child_id == other.child_id)
return route_id < other.route_id;
return child_id < other.child_id;
}
bool operator==(const GlobalRoutingID& other) const {
return child_id == other.child_id &&
route_id == other.route_id;
}
bool operator!=(const GlobalRoutingID& other) const {
return !(*this == other);
}
};
}
#endif