| Index: content/test/net/url_request_user_data_helper.h
|
| diff --git a/content/test/net/url_request_user_data_helper.h b/content/test/net/url_request_user_data_helper.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4fb7065c07a0c30f86fe07a5f0fbffcb41fb627e
|
| --- /dev/null
|
| +++ b/content/test/net/url_request_user_data_helper.h
|
| @@ -0,0 +1,27 @@
|
| +// 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_TEST_NET_URL_REQUEST_USER_DATA_HELPER_H_
|
| +#define CONTENT_TEST_NET_URL_REQUEST_USER_DATA_HELPER_H_
|
| +#pragma once
|
| +
|
| +#include "base/basictypes.h"
|
| +
|
| +namespace net {
|
| +class URLRequest;
|
| +}
|
| +
|
| +// Helper for dealing with URLRequestUserData in test code.
|
| +class URLRequestUserDataHelper {
|
| + public:
|
| + static void AssociateWithRenderView(net::URLRequest* request,
|
| + int render_process_id,
|
| + int render_view_id);
|
| + static void DissasociateFromRenderView(net::URLRequest* request);
|
| +
|
| + private:
|
| + DISALLOW_IMPLICIT_CONSTRUCTORS(URLRequestUserDataHelper);
|
| +};
|
| +
|
| +#endif // CONTENT_TEST_NET_URL_REQUEST_USER_DATA_HELPER_H_
|
|
|