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

Side by Side Diff: content/browser/resource_context_impl.cc

Issue 11414299: Add content/browser/loader/ for resource loading related classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/resource_context_impl.h" 5 #include "content/browser/resource_context_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/fileapi/chrome_blob_storage_context.h" 8 #include "content/browser/fileapi/chrome_blob_storage_context.h"
9 #include "content/browser/host_zoom_map_impl.h" 9 #include "content/browser/host_zoom_map_impl.h"
10 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" 10 #include "content/browser/loader/resource_dispatcher_host_impl.h"
11 #include "content/browser/renderer_host/resource_request_info_impl.h" 11 #include "content/browser/loader/resource_request_info_impl.h"
12 #include "content/public/browser/browser_context.h" 12 #include "content/public/browser/browser_context.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 14
15 // Key names on ResourceContext. 15 // Key names on ResourceContext.
16 static const char* kBlobStorageContextKeyName = "content_blob_storage_context"; 16 static const char* kBlobStorageContextKeyName = "content_blob_storage_context";
17 static const char* kHostZoomMapKeyName = "content_host_zoom_map"; 17 static const char* kHostZoomMapKeyName = "content_host_zoom_map";
18 18
19 using base::UserDataAdapter; 19 using base::UserDataAdapter;
20 20
21 namespace content { 21 namespace content {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // This object is owned by the BrowserContext and not ResourceContext, so 72 // This object is owned by the BrowserContext and not ResourceContext, so
73 // store a non-owning pointer here. 73 // store a non-owning pointer here.
74 resource_context->SetUserData( 74 resource_context->SetUserData(
75 kHostZoomMapKeyName, 75 kHostZoomMapKeyName,
76 new NonOwningZoomData( 76 new NonOwningZoomData(
77 HostZoomMap::GetForBrowserContext(browser_context))); 77 HostZoomMap::GetForBrowserContext(browser_context)));
78 resource_context->DetachUserDataThread(); 78 resource_context->DetachUserDataThread();
79 } 79 }
80 80
81 } // namespace content 81 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/x509_user_cert_resource_handler.cc ('k') | content/browser/ssl/ssl_cert_error_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698