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

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

Issue 9950040: Get chrome:// dev tool urls hooked up in content_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/public/app/content_main_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/appcache/chrome_appcache_service.h" 8 #include "content/browser/appcache/chrome_appcache_service.h"
9 #include "content/browser/fileapi/browser_file_system_helper.h" 9 #include "content/browser/fileapi/browser_file_system_helper.h"
10 #include "content/browser/fileapi/chrome_blob_storage_context.h" 10 #include "content/browser/fileapi/chrome_blob_storage_context.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 const GURL& location, 116 const GURL& location,
117 net::URLRequest* request) const OVERRIDE { 117 net::URLRequest* request) const OVERRIDE {
118 return NULL; 118 return NULL;
119 } 119 }
120 120
121 virtual net::URLRequestJob* MaybeInterceptResponse( 121 virtual net::URLRequestJob* MaybeInterceptResponse(
122 net::URLRequest* request) const OVERRIDE { 122 net::URLRequest* request) const OVERRIDE {
123 return NULL; 123 return NULL;
124 } 124 }
125 125
126 virtual bool WillHandleProtocol(const std::string& protocol) const {
127 return protocol == chrome::kChromeUIScheme;
128 }
129
126 private: 130 private:
127 AppCacheService* appcache_service_; 131 AppCacheService* appcache_service_;
128 BlobStorageController* blob_storage_controller_; 132 BlobStorageController* blob_storage_controller_;
129 }; 133 };
130 134
131 void InitializeRequestContext( 135 void InitializeRequestContext(
132 ResourceContext* resource_context, 136 ResourceContext* resource_context,
133 scoped_refptr<net::URLRequestContextGetter> context_getter) { 137 scoped_refptr<net::URLRequestContextGetter> context_getter) {
134 if (!context_getter) 138 if (!context_getter)
135 return; // tests. 139 return; // tests.
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 BrowserThread::PostTask( 255 BrowserThread::PostTask(
252 BrowserThread::IO, FROM_HERE, 256 BrowserThread::IO, FROM_HERE,
253 base::Bind(&InitializeRequestContext, 257 base::Bind(&InitializeRequestContext,
254 resource_context, 258 resource_context,
255 make_scoped_refptr( 259 make_scoped_refptr(
256 browser_context->GetRequestContextForMedia()))); 260 browser_context->GetRequestContextForMedia())));
257 } 261 }
258 } 262 }
259 263
260 } // namespace content 264 } // namespace content
OLDNEW
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/public/app/content_main_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698