Chromium Code Reviews| Index: content/public/common/url_request_user_data.h |
| diff --git a/content/public/common/url_request_user_data.h b/content/public/common/url_request_user_data.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..de896e5fca2224c59d36fc1fbcc4612275a78a24 |
| --- /dev/null |
| +++ b/content/public/common/url_request_user_data.h |
| @@ -0,0 +1,30 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_COMMON_URL_REQUEST_USER_DATA_H_ |
| +#define CONTENT_PUBLIC_COMMON_URL_REQUEST_USER_DATA_H_ |
| +#pragma once |
| + |
| +#include "base/supports_user_data.h" |
| +#include "content/common/content_export.h" |
| + |
| +namespace content { |
| + |
| +// The content library will annotate all URLRequests with the following user |
| +// data if the request can be associated with a given render view. |
| +class CONTENT_EXPORT URLRequestUserData |
| + : public base::SupportsUserData::Data { |
| + public: |
| + 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
|
| + virtual ~URLRequestUserData(); |
| + |
| + static const void* kUserDataKey; |
| + |
| + 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
|
| + int routing_id; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_COMMON_URL_REQUEST_USER_DATA_H_ |