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_TEST_NET_URL_REQUEST_USER_DATA_HELPER_H_ |
| 6 #define CONTENT_TEST_NET_URL_REQUEST_USER_DATA_HELPER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 |
| 11 namespace net { |
| 12 class URLRequest; |
| 13 } |
| 14 |
| 15 // Helper for dealing with URLRequestUserData in test code. |
| 16 class URLRequestUserDataHelper { |
| 17 public: |
| 18 static void AssociateWithRenderView(net::URLRequest* request, |
| 19 int render_process_id, |
| 20 int render_view_id); |
| 21 static void DissasociateFromRenderView(net::URLRequest* request); |
| 22 |
| 23 private: |
| 24 DISALLOW_IMPLICIT_CONSTRUCTORS(URLRequestUserDataHelper); |
| 25 }; |
| 26 |
| 27 #endif // CONTENT_TEST_NET_URL_REQUEST_USER_DATA_HELPER_H_ |
OLD | NEW |