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_COMMON_NET_URL_REQUEST_USER_DATA_H_ |
| 6 #define CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/supports_user_data.h" |
| 10 |
| 11 // Used to annotate all URLRequests for which the request can be associated |
| 12 // with a given render view. |
| 13 class URLRequestUserData : public base::SupportsUserData::Data { |
| 14 public: |
| 15 URLRequestUserData(int render_process_id, int render_view_id); |
| 16 virtual ~URLRequestUserData(); |
| 17 |
| 18 int render_process_id() const { return render_process_id_; } |
| 19 int render_view_id() const { return render_view_id_; } |
| 20 |
| 21 static const void* kUserDataKey; |
| 22 |
| 23 private: |
| 24 int render_process_id_; |
| 25 int render_view_id_; |
| 26 }; |
| 27 |
| 28 #endif // CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_ |
OLD | NEW |