summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_plugin_browsing_context.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-06 04:19:30 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-06 04:19:30 +0000
commit27a112c2e8c464ddd4aed5e1f425204bb3f96d54 (patch)
treea02d4a66a90a040a04aa64cb94948c8e7df59658 /chrome/browser/chrome_plugin_browsing_context.h
parente79cf09fd1bd403396a65a3c02642b075ec3d1d9 (diff)
downloadchromium_src-27a112c2e8c464ddd4aed5e1f425204bb3f96d54.zip
chromium_src-27a112c2e8c464ddd4aed5e1f425204bb3f96d54.tar.gz
chromium_src-27a112c2e8c464ddd4aed5e1f425204bb3f96d54.tar.bz2
net: Add namespace net to the remaining files under url_request directory.
It just adds the 'namespace net' to these files and a typedef for them, because there are many entries to fix in one pass. They will be fixed later. BUG=64263 TEST=trybots Review URL: http://codereview.chromium.org/6056007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_plugin_browsing_context.h')
-rw-r--r--chrome/browser/chrome_plugin_browsing_context.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/chrome/browser/chrome_plugin_browsing_context.h b/chrome/browser/chrome_plugin_browsing_context.h
index 45d24f3..9f0eb8f 100644
--- a/chrome/browser/chrome_plugin_browsing_context.h
+++ b/chrome/browser/chrome_plugin_browsing_context.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -13,7 +13,9 @@
#include "chrome/common/notification_observer.h"
#include "chrome/common/notification_registrar.h"
+namespace net {
class URLRequestContext;
+} // namespace net
// This class manages the mapping between CPBrowsingContexts and
// URLRequestContexts. It observes when URLRequestContexts go away, and
@@ -33,16 +35,16 @@ class CPBrowsingContextManager : public NotificationObserver {
// Generate a new unique CPBrowsingContext ID from the given
// URLRequestContext. Multiple CPBrowsingContexts can map to the same
// URLRequestContext.
- CPBrowsingContext Allocate(URLRequestContext* context);
+ CPBrowsingContext Allocate(net::URLRequestContext* context);
// Return the URLRequestContext that this CPBrowsingContext refers to, or NULL
// if not found.
- URLRequestContext* ToURLRequestContext(CPBrowsingContext id);
+ net::URLRequestContext* ToURLRequestContext(CPBrowsingContext id);
// Return a CPBrowsingContext ID that corresponds to the given
// URLRequestContext. This function differs from Allocate in that calling
// this multiple times with the same argument gives the same ID.
- CPBrowsingContext Lookup(URLRequestContext* context);
+ CPBrowsingContext Lookup(net::URLRequestContext* context);
private:
// NotificationObserver
@@ -50,8 +52,8 @@ class CPBrowsingContextManager : public NotificationObserver {
const NotificationSource& source,
const NotificationDetails& details);
- typedef IDMap<URLRequestContext> Map;
- typedef std::map<URLRequestContext*, CPBrowsingContext> ReverseMap;
+ typedef IDMap<net::URLRequestContext> Map;
+ typedef std::map<net::URLRequestContext*, CPBrowsingContext> ReverseMap;
NotificationRegistrar registrar_;