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

Unified Diff: content/public/common/url_request_user_data.cc

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TestShellNetworkDelegate Created 8 years, 10 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/public/common/url_request_user_data.cc
diff --git a/content/public/common/url_request_user_data.cc b/content/public/common/url_request_user_data.cc
new file mode 100644
index 0000000000000000000000000000000000000000..052b6d024c31df95c7b7788f0a225f6170cca47f
--- /dev/null
+++ b/content/public/common/url_request_user_data.cc
@@ -0,0 +1,19 @@
+// 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.
+
+#include "content/public/common/url_request_user_data.h"
jam 2012/03/05 19:11:03 is this cc file needed at all? we try to avoid cc
jochen (gone - plz use gerrit) 2012/03/06 18:39:54 I need the .cc file for the static const, however,
+
+namespace content {
+
+URLRequestUserData::URLRequestUserData(int process_id, int routing_id)
+ : process_id(process_id),
+ routing_id(routing_id) {}
+
+URLRequestUserData::~URLRequestUserData() {}
+
+// static
+const void* URLRequestUserData::kUserDataKey =
cbentzel 2012/03/05 12:56:12 Funky - most other cases I've seen use a NULL-term
+ static_cast<const void*>(&URLRequestUserData::kUserDataKey);
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698