| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_GLOBAL_ROUTING_ID_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_GLOBAL_ROUTING_ID_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_GLOBAL_ROUTING_ID_H_ | 6 #define CONTENT_BROWSER_LOADER_GLOBAL_ROUTING_ID_H_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 | 9 |
| 10 // Uniquely identifies the route from which a net::URLRequest comes. | 10 // Uniquely identifies the route from which a net::URLRequest comes. |
| 11 struct GlobalRoutingID { | 11 struct GlobalRoutingID { |
| 12 GlobalRoutingID() : child_id(-1), route_id(-1) { | 12 GlobalRoutingID() : child_id(-1), route_id(-1) { |
| 13 } | 13 } |
| 14 | 14 |
| 15 GlobalRoutingID(int child_id, int route_id) | 15 GlobalRoutingID(int child_id, int route_id) |
| 16 : child_id(child_id), | 16 : child_id(child_id), |
| (...skipping 15 matching lines...) Expand all Loading... |
| 32 return child_id == other.child_id && | 32 return child_id == other.child_id && |
| 33 route_id == other.route_id; | 33 route_id == other.route_id; |
| 34 } | 34 } |
| 35 bool operator!=(const GlobalRoutingID& other) const { | 35 bool operator!=(const GlobalRoutingID& other) const { |
| 36 return !(*this == other); | 36 return !(*this == other); |
| 37 } | 37 } |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace content | 40 } // namespace content |
| 41 | 41 |
| 42 #endif // CONTENT_PUBLIC_BROWSER_GLOBAL_ROUTING_ID_H_ | 42 #endif // CONTENT_BROWSER_LOADER_GLOBAL_ROUTING_ID_H_ |
| OLD | NEW |