| OLD | NEW |
| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "android_webview/browser/aw_browser_context.h" | 9 #include "android_webview/browser/aw_browser_context.h" |
| 10 #include "android_webview/browser/aw_browser_main_parts.h" | 10 #include "android_webview/browser/aw_browser_main_parts.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // even if access to file: scheme is not granted to the child process. | 256 // even if access to file: scheme is not granted to the child process. |
| 257 return !IsAndroidSpecialFileUrl(url); | 257 return !IsAndroidSpecialFileUrl(url); |
| 258 } | 258 } |
| 259 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { | 259 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { |
| 260 if (scheme == kProtocolList[i]) | 260 if (scheme == kProtocolList[i]) |
| 261 return true; | 261 return true; |
| 262 } | 262 } |
| 263 return net::URLRequest::IsHandledProtocol(scheme); | 263 return net::URLRequest::IsHandledProtocol(scheme); |
| 264 } | 264 } |
| 265 | 265 |
| 266 std::string AwContentBrowserClient::GetCanonicalEncodingNameByAliasName( | |
| 267 const std::string& alias_name) { | |
| 268 return alias_name; | |
| 269 } | |
| 270 | |
| 271 void AwContentBrowserClient::AppendExtraCommandLineSwitches( | 266 void AwContentBrowserClient::AppendExtraCommandLineSwitches( |
| 272 base::CommandLine* command_line, | 267 base::CommandLine* command_line, |
| 273 int child_process_id) { | 268 int child_process_id) { |
| 274 if (command_line->HasSwitch(switches::kSingleProcess)) { | 269 if (command_line->HasSwitch(switches::kSingleProcess)) { |
| 275 NOTREACHED() << "Android WebView does not support multi-process yet"; | 270 NOTREACHED() << "Android WebView does not support multi-process yet"; |
| 276 } else { | 271 } else { |
| 277 // The only kind of a child process WebView can have is renderer. | 272 // The only kind of a child process WebView can have is renderer. |
| 278 DCHECK_EQ(switches::kRendererProcess, | 273 DCHECK_EQ(switches::kRendererProcess, |
| 279 command_line->GetSwitchValueASCII(switches::kProcessType)); | 274 command_line->GetSwitchValueASCII(switches::kProcessType)); |
| 280 } | 275 } |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 render_frame_host)); | 552 render_frame_host)); |
| 558 | 553 |
| 559 // Although WebView does not support password manager feature, renderer code | 554 // Although WebView does not support password manager feature, renderer code |
| 560 // could still request this interface, so we register a dummy binder which | 555 // could still request this interface, so we register a dummy binder which |
| 561 // just drops the incoming request, to avoid the 'Failed to locate a binder | 556 // just drops the incoming request, to avoid the 'Failed to locate a binder |
| 562 // for interface' error log.. | 557 // for interface' error log.. |
| 563 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver)); | 558 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver)); |
| 564 } | 559 } |
| 565 | 560 |
| 566 } // namespace android_webview | 561 } // namespace android_webview |
| OLD | NEW |