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

Unified Diff: chrome/browser/chrome_plugin_browsing_context.h

Issue 6056007: net: Add namespace net to the remaining files under url_request directory. (Closed)
Patch Set: chromeos fixes Created 9 years, 12 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: chrome/browser/chrome_plugin_browsing_context.h
diff --git a/chrome/browser/chrome_plugin_browsing_context.h b/chrome/browser/chrome_plugin_browsing_context.h
index 45d24f38827b65bbfe6ccc9d5ca22be5866de52d..9f0eb8f19e901d1008f1ed7d3699a37440357be4 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_;
« no previous file with comments | « chrome/browser/automation/url_request_automation_job.h ('k') | chrome/browser/chrome_plugin_browsing_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698