Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(630)

Unified Diff: content/test/net/url_request_user_data_helper.h

Issue 10310124: Implement a ResourceThrottle for URL overriding in Chrome on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix layering problem with unittest Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698