Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: content/public/browser/global_request_id.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_REQUEST_ID_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GLOBAL_REQUEST_ID_H_
6 #define CONTENT_PUBLIC_BROWSER_GLOBAL_REQUEST_ID_H_ 6 #define CONTENT_PUBLIC_BROWSER_GLOBAL_REQUEST_ID_H_
7 #pragma once
8 7
9 namespace content { 8 namespace content {
10 9
11 // Uniquely identifies a net::URLRequest. 10 // Uniquely identifies a net::URLRequest.
12 struct GlobalRequestID { 11 struct GlobalRequestID {
13 GlobalRequestID() : child_id(-1), request_id(-1) { 12 GlobalRequestID() : child_id(-1), request_id(-1) {
14 } 13 }
15 14
16 GlobalRequestID(int child_id, int request_id) 15 GlobalRequestID(int child_id, int request_id)
17 : child_id(child_id), 16 : child_id(child_id),
(...skipping 17 matching lines...) Expand all
35 } 34 }
36 bool operator!=(const GlobalRequestID& other) const { 35 bool operator!=(const GlobalRequestID& other) const {
37 return child_id != other.child_id || 36 return child_id != other.child_id ||
38 request_id != other.request_id; 37 request_id != other.request_id;
39 } 38 }
40 }; 39 };
41 40
42 } // namespace content 41 } // namespace content
43 42
44 #endif // CONTENT_PUBLIC_BROWSER_GLOBAL_REQUEST_ID_H_ 43 #endif // CONTENT_PUBLIC_BROWSER_GLOBAL_REQUEST_ID_H_
OLDNEW
« no previous file with comments | « content/public/browser/geolocation_permission_context.h ('k') | content/public/browser/gpu_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698