summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_plugin_browsing_context.cc
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.cc
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.cc')
-rw-r--r--chrome/browser/chrome_plugin_browsing_context.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/chrome_plugin_browsing_context.cc b/chrome/browser/chrome_plugin_browsing_context.cc
index 3ff4729..a252bbf 100644
--- a/chrome/browser/chrome_plugin_browsing_context.cc
+++ b/chrome/browser/chrome_plugin_browsing_context.cc
@@ -23,17 +23,18 @@ CPBrowsingContextManager::~CPBrowsingContextManager() {
}
CPBrowsingContext CPBrowsingContextManager::Allocate(
- URLRequestContext* context) {
+ net::URLRequestContext* context) {
int32 map_id = map_.Add(context);
return static_cast<CPBrowsingContext>(map_id);
}
-URLRequestContext* CPBrowsingContextManager::ToURLRequestContext(
+net::URLRequestContext* CPBrowsingContextManager::ToURLRequestContext(
CPBrowsingContext id) {
return map_.Lookup(static_cast<int32>(id));
}
-CPBrowsingContext CPBrowsingContextManager::Lookup(URLRequestContext* context) {
+CPBrowsingContext CPBrowsingContextManager::Lookup(
+ net::URLRequestContext* context) {
ReverseMap::const_iterator it = reverse_map_.find(context);
if (it == reverse_map_.end()) {
CPBrowsingContext id = Allocate(context);
@@ -49,7 +50,8 @@ void CPBrowsingContextManager::Observe(NotificationType type,
const NotificationDetails& details) {
DCHECK(type == NotificationType::URL_REQUEST_CONTEXT_RELEASED);
- URLRequestContext* context = Source<URLRequestContext>(source).ptr();
+ net::URLRequestContext* context =
+ Source<net::URLRequestContext>(source).ptr();
// Multiple CPBrowsingContexts may refer to the same URLRequestContext.
for (Map::iterator it(&map_); !it.IsAtEnd(); it.Advance()) {