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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 | 614 |
615 // Allows the embedder to record |metric| for a specific |url|. | 615 // Allows the embedder to record |metric| for a specific |url|. |
616 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} | 616 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} |
617 | 617 |
618 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 618 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
619 // Populates |mappings| with all files that need to be mapped before launching | 619 // Populates |mappings| with all files that need to be mapped before launching |
620 // a child process. | 620 // a child process. |
621 virtual void GetAdditionalMappedFilesForChildProcess( | 621 virtual void GetAdditionalMappedFilesForChildProcess( |
622 const base::CommandLine& command_line, | 622 const base::CommandLine& command_line, |
623 int child_process_id, | 623 int child_process_id, |
624 FileDescriptorInfo* mappings) {} | 624 FileDescriptorInfo* mappings |
| 625 #if defined(OS_ANDROID) |
| 626 , std::map<int, base::MemoryMappedFile::Region>* regions |
| 627 #endif |
| 628 ) {} |
625 #endif | 629 #endif |
626 | 630 |
627 #if defined(OS_WIN) | 631 #if defined(OS_WIN) |
628 // Returns the name of the dll that contains cursors and other resources. | 632 // Returns the name of the dll that contains cursors and other resources. |
629 virtual const wchar_t* GetResourceDllName(); | 633 virtual const wchar_t* GetResourceDllName(); |
630 | 634 |
631 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 635 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
632 // is launched. It gives the embedder a chance to add loosen the sandbox | 636 // is launched. It gives the embedder a chance to add loosen the sandbox |
633 // policy. | 637 // policy. |
634 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 638 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
635 bool* success) {} | 639 bool* success) {} |
636 #endif | 640 #endif |
637 | 641 |
638 #if defined(VIDEO_HOLE) | 642 #if defined(VIDEO_HOLE) |
639 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 643 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
640 // implementation. Return nullptr to disable external surface video. | 644 // implementation. Return nullptr to disable external surface video. |
641 virtual ExternalVideoSurfaceContainer* | 645 virtual ExternalVideoSurfaceContainer* |
642 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 646 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
643 #endif | 647 #endif |
644 }; | 648 }; |
645 | 649 |
646 } // namespace content | 650 } // namespace content |
647 | 651 |
648 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |