OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_URL_REQUEST_USER_DATA_H_ | |
6 #define CONTENT_PUBLIC_COMMON_CONTENT_URL_REQUEST_USER_DATA_H_ | |
7 #pragma once | |
8 | |
9 #include "base/supports_user_data.h" | |
10 #include "content/common/content_export.h" | |
11 | |
12 namespace content { | |
13 | |
14 // The content library will annotate all URLRequests with the following user | |
15 // data if the request can be associated with a given render view. | |
16 class CONTENT_EXPORT ContentURLRequestUserData | |
jam
2012/03/01 19:30:42
nit: we dont normally add a "Content" prefix to a
| |
17 : public base::SupportsUserData::Data { | |
18 public: | |
19 ContentURLRequestUserData(int process_id, int routing_id); | |
20 // Use this, if no render view can be associated with this request. | |
21 ContentURLRequestUserData(); | |
22 virtual ~ContentURLRequestUserData(); | |
23 | |
24 int process_id() const { return process_id_; } | |
willchan no longer on Chromium
2012/03/01 20:30:10
Somewhere there should be documentation about thes
| |
25 int routing_id() const { return routing_id_; } | |
26 | |
27 static const void* kUserDataKey; | |
willchan no longer on Chromium
2012/03/01 20:30:10
static const void* const
willchan no longer on Chromium
2012/03/06 02:59:01
?
| |
28 | |
29 private: | |
30 int process_id_; | |
31 int routing_id_; | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(ContentURLRequestUserData); | |
34 }; | |
35 | |
36 } // namespace content | |
37 | |
38 #endif // CONTENT_PUBLIC_COMMON_CONTENT_URL_REQUEST_USER_DATA_H_ | |
OLD | NEW |