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

Side by Side Diff: android_webview/browser/aw_content_browser_client.cc

Issue 12386009: Remove the chrome:// protocol interceptor since it's not used anymore now that the chrome job facto… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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
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 "android_webview/browser/aw_content_browser_client.h" 5 #include "android_webview/browser/aw_content_browser_client.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_browser_main_parts.h" 8 #include "android_webview/browser/aw_browser_main_parts.h"
9 #include "android_webview/browser/aw_contents_client_bridge_base.h" 9 #include "android_webview/browser/aw_contents_client_bridge_base.h"
10 #include "android_webview/browser/aw_cookie_access_policy.h" 10 #include "android_webview/browser/aw_cookie_access_policy.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 117
118 net::URLRequestContextGetter* 118 net::URLRequestContextGetter*
119 AwContentBrowserClient::CreateRequestContext( 119 AwContentBrowserClient::CreateRequestContext(
120 content::BrowserContext* browser_context, 120 content::BrowserContext* browser_context,
121 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 121 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
122 blob_protocol_handler, 122 blob_protocol_handler,
123 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 123 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
124 file_system_protocol_handler, 124 file_system_protocol_handler,
125 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 125 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
126 developer_protocol_handler,
127 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
128 chrome_protocol_handler, 126 chrome_protocol_handler,
129 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 127 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
130 chrome_devtools_protocol_handler) { 128 chrome_devtools_protocol_handler) {
131 DCHECK(browser_context_.get() == browser_context); 129 DCHECK(browser_context_.get() == browser_context);
132 return browser_context_->CreateRequestContext( 130 return browser_context_->CreateRequestContext(
133 blob_protocol_handler.Pass(), file_system_protocol_handler.Pass(), 131 blob_protocol_handler.Pass(), file_system_protocol_handler.Pass(),
134 developer_protocol_handler.Pass(), chrome_protocol_handler.Pass(), 132 chrome_protocol_handler.Pass(), chrome_devtools_protocol_handler.Pass());
135 chrome_devtools_protocol_handler.Pass());
136 } 133 }
137 134
138 net::URLRequestContextGetter* 135 net::URLRequestContextGetter*
139 AwContentBrowserClient::CreateRequestContextForStoragePartition( 136 AwContentBrowserClient::CreateRequestContextForStoragePartition(
140 content::BrowserContext* browser_context, 137 content::BrowserContext* browser_context,
141 const base::FilePath& partition_path, 138 const base::FilePath& partition_path,
142 bool in_memory, 139 bool in_memory,
143 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 140 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
144 blob_protocol_handler, 141 blob_protocol_handler,
145 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 142 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
146 file_system_protocol_handler, 143 file_system_protocol_handler,
147 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 144 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
148 developer_protocol_handler,
149 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
150 chrome_protocol_handler, 145 chrome_protocol_handler,
151 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> 146 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
152 chrome_devtools_protocol_handler) { 147 chrome_devtools_protocol_handler) {
153 DCHECK(browser_context_.get() == browser_context); 148 DCHECK(browser_context_.get() == browser_context);
154 return browser_context_->CreateRequestContextForStoragePartition( 149 return browser_context_->CreateRequestContextForStoragePartition(
155 partition_path, in_memory, blob_protocol_handler.Pass(), 150 partition_path, in_memory, blob_protocol_handler.Pass(),
156 file_system_protocol_handler.Pass(), 151 file_system_protocol_handler.Pass(), chrome_protocol_handler.Pass(),
157 developer_protocol_handler.Pass(), chrome_protocol_handler.Pass(),
158 chrome_devtools_protocol_handler.Pass()); 152 chrome_devtools_protocol_handler.Pass());
159 } 153 }
160 154
161 std::string AwContentBrowserClient::GetCanonicalEncodingNameByAliasName( 155 std::string AwContentBrowserClient::GetCanonicalEncodingNameByAliasName(
162 const std::string& alias_name) { 156 const std::string& alias_name) {
163 return alias_name; 157 return alias_name;
164 } 158 }
165 159
166 void AwContentBrowserClient::AppendExtraCommandLineSwitches( 160 void AwContentBrowserClient::AppendExtraCommandLineSwitches(
167 CommandLine* command_line, 161 CommandLine* command_line,
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 395
402 bool AwContentBrowserClient::AllowPepperSocketAPI( 396 bool AwContentBrowserClient::AllowPepperSocketAPI(
403 content::BrowserContext* browser_context, 397 content::BrowserContext* browser_context,
404 const GURL& url, 398 const GURL& url,
405 const content::SocketPermissionRequest& params) { 399 const content::SocketPermissionRequest& params) {
406 NOTREACHED() << "Android WebView does not support plugins"; 400 NOTREACHED() << "Android WebView does not support plugins";
407 return false; 401 return false;
408 } 402 }
409 403
410 } // namespace android_webview 404 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | android_webview/browser/net/aw_url_request_context_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698