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

Side by Side Diff: content/common/net/url_request_user_data.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
« no previous file with comments | « content/common/navigation_gesture.h ('k') | content/common/np_channel_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_COMMON_NET_URL_REQUEST_USER_DATA_H_ 5 #ifndef CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_
6 #define CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_ 6 #define CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_
7 #pragma once
8 7
9 #include "base/supports_user_data.h" 8 #include "base/supports_user_data.h"
10 9
11 // Used to annotate all URLRequests for which the request can be associated 10 // Used to annotate all URLRequests for which the request can be associated
12 // with a given render view. 11 // with a given render view.
13 class URLRequestUserData : public base::SupportsUserData::Data { 12 class URLRequestUserData : public base::SupportsUserData::Data {
14 public: 13 public:
15 URLRequestUserData(int render_process_id, int render_view_id); 14 URLRequestUserData(int render_process_id, int render_view_id);
16 virtual ~URLRequestUserData(); 15 virtual ~URLRequestUserData();
17 16
18 int render_process_id() const { return render_process_id_; } 17 int render_process_id() const { return render_process_id_; }
19 int render_view_id() const { return render_view_id_; } 18 int render_view_id() const { return render_view_id_; }
20 19
21 static const void* kUserDataKey; 20 static const void* kUserDataKey;
22 21
23 private: 22 private:
24 int render_process_id_; 23 int render_process_id_;
25 int render_view_id_; 24 int render_view_id_;
26 }; 25 };
27 26
28 #endif // CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_ 27 #endif // CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_
OLDNEW
« no previous file with comments | « content/common/navigation_gesture.h ('k') | content/common/np_channel_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698