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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 const GURL& url) { | 478 const GURL& url) { |
479 NOTREACHED() << "Android WebView does not support plugins"; | 479 NOTREACHED() << "Android WebView does not support plugins"; |
480 return false; | 480 return false; |
481 } | 481 } |
482 | 482 |
483 content::TracingDelegate* AwContentBrowserClient::GetTracingDelegate() { | 483 content::TracingDelegate* AwContentBrowserClient::GetTracingDelegate() { |
484 return new AwTracingDelegate(); | 484 return new AwTracingDelegate(); |
485 } | 485 } |
486 | 486 |
487 void AwContentBrowserClient::GetAdditionalMappedFilesForChildProcess( | 487 void AwContentBrowserClient::GetAdditionalMappedFilesForChildProcess( |
488 const base::CommandLine& command_line, | 488 const base::CommandLine& command_line, |
489 int child_process_id, | 489 int child_process_id, |
490 content::FileDescriptorInfo* mappings) { | 490 content::PosixFileDescriptorInfo* mappings) { |
491 base::MemoryMappedFile::Region region; | 491 base::MemoryMappedFile::Region region; |
492 int fd = ui::GetMainAndroidPackFd(®ion); | 492 int fd = ui::GetMainAndroidPackFd(®ion); |
493 mappings->ShareWithRegion(kAndroidWebViewMainPakDescriptor, fd, region); | 493 mappings->ShareWithRegion(kAndroidWebViewMainPakDescriptor, fd, region); |
494 | 494 |
495 fd = ui::GetCommonResourcesPackFd(®ion); | 495 fd = ui::GetCommonResourcesPackFd(®ion); |
496 mappings->ShareWithRegion(kAndroidWebView100PercentPakDescriptor, fd, region); | 496 mappings->ShareWithRegion(kAndroidWebView100PercentPakDescriptor, fd, region); |
497 | 497 |
498 fd = ui::GetLocalePackFd(®ion); | 498 fd = ui::GetLocalePackFd(®ion); |
499 mappings->ShareWithRegion(kAndroidWebViewLocalePakDescriptor, fd, region); | 499 mappings->ShareWithRegion(kAndroidWebViewLocalePakDescriptor, fd, region); |
500 | 500 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 const std::string& interface_name, | 554 const std::string& interface_name, |
555 mojo::ScopedMessagePipeHandle interface_pipe) { | 555 mojo::ScopedMessagePipeHandle interface_pipe) { |
556 if (frame_interfaces_.CanBindInterface(interface_name)) { | 556 if (frame_interfaces_.CanBindInterface(interface_name)) { |
557 frame_interfaces_.BindInterface(source_info, interface_name, | 557 frame_interfaces_.BindInterface(source_info, interface_name, |
558 std::move(interface_pipe), | 558 std::move(interface_pipe), |
559 render_frame_host); | 559 render_frame_host); |
560 } | 560 } |
561 } | 561 } |
562 | 562 |
563 } // namespace android_webview | 563 } // namespace android_webview |
OLD | NEW |