Chromium Code Reviews| 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_URL_REQUEST_USER_DATA_H_ | |
| 6 #define CONTENT_PUBLIC_COMMON_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 URLRequestUserData | |
| 17 : public base::SupportsUserData::Data { | |
| 18 public: | |
| 19 URLRequestUserData(int process_id, int routing_id); | |
|
cbentzel
2012/03/05 12:56:12
Nit: this is typically called child_id rather than
jam
2012/03/05 19:11:03
if this is only for renderer processes, then rende
| |
| 20 virtual ~URLRequestUserData(); | |
| 21 | |
| 22 static const void* kUserDataKey; | |
| 23 | |
| 24 int process_id; | |
|
willchan no longer on Chromium
2012/03/06 02:59:01
How come these are public? Sorry if I'm nitting yo
| |
| 25 int routing_id; | |
| 26 }; | |
| 27 | |
| 28 } // namespace content | |
| 29 | |
| 30 #endif // CONTENT_PUBLIC_COMMON_URL_REQUEST_USER_DATA_H_ | |
| OLD | NEW |