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

Unified Diff: content/common/net/url_request_user_data.h

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 years, 9 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
« no previous file with comments | « content/common/net/url_fetcher_impl_unittest.cc ('k') | content/common/net/url_request_user_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/net/url_request_user_data.h
diff --git a/content/common/net/url_request_user_data.h b/content/common/net/url_request_user_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..b12d729d45cd96c32d651489728cebc13f4db4fe
--- /dev/null
+++ b/content/common/net/url_request_user_data.h
@@ -0,0 +1,28 @@
+// 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_COMMON_NET_URL_REQUEST_USER_DATA_H_
+#define CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_
+#pragma once
+
+#include "base/supports_user_data.h"
+
+// Used to annotate all URLRequests for which the request can be associated
+// with a given render view.
+class URLRequestUserData : public base::SupportsUserData::Data {
+ public:
+ URLRequestUserData(int render_process_id, int render_view_id);
+ virtual ~URLRequestUserData();
+
+ int render_process_id() const { return render_process_id_; }
+ int render_view_id() const { return render_view_id_; }
+
+ static const void* kUserDataKey;
+
+ private:
+ int render_process_id_;
+ int render_view_id_;
+};
+
+#endif // CONTENT_COMMON_NET_URL_REQUEST_USER_DATA_H_
« no previous file with comments | « content/common/net/url_fetcher_impl_unittest.cc ('k') | content/common/net/url_request_user_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698