Chromium Code Reviews| 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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 603 | 603 |
| 604 // Allows the embedder to record |metric| for a specific |url|. | 604 // Allows the embedder to record |metric| for a specific |url|. |
| 605 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} | 605 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} |
| 606 | 606 |
| 607 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 607 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 608 // Populates |mappings| with all files that need to be mapped before launching | 608 // Populates |mappings| with all files that need to be mapped before launching |
| 609 // a child process. | 609 // a child process. |
| 610 virtual void GetAdditionalMappedFilesForChildProcess( | 610 virtual void GetAdditionalMappedFilesForChildProcess( |
| 611 const base::CommandLine& command_line, | 611 const base::CommandLine& command_line, |
| 612 int child_process_id, | 612 int child_process_id, |
| 613 FileDescriptorInfo* mappings) {} | 613 FileDescriptorInfo* mappings |
| 614 #if defined(OS_ANDROID) | |
| 615 , | |
| 616 std::map<int, base::MemoryMappedFile::Region>* regions | |
|
jam
2015/06/04 03:13:30
nit: why not just combine these two lines together
agrieve
2015/06/04 19:17:20
I didn't know how to format it, so I let clang-for
| |
| 617 #endif | |
| 618 ) {} | |
| 614 #endif | 619 #endif |
| 615 | 620 |
| 616 #if defined(OS_WIN) | 621 #if defined(OS_WIN) |
| 617 // Returns the name of the dll that contains cursors and other resources. | 622 // Returns the name of the dll that contains cursors and other resources. |
| 618 virtual const wchar_t* GetResourceDllName(); | 623 virtual const wchar_t* GetResourceDllName(); |
| 619 | 624 |
| 620 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 625 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
| 621 // is launched. It gives the embedder a chance to add loosen the sandbox | 626 // is launched. It gives the embedder a chance to add loosen the sandbox |
| 622 // policy. | 627 // policy. |
| 623 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 628 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
| 624 bool* success) {} | 629 bool* success) {} |
| 625 #endif | 630 #endif |
| 626 | 631 |
| 627 #if defined(VIDEO_HOLE) | 632 #if defined(VIDEO_HOLE) |
| 628 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 633 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 629 // implementation. Return nullptr to disable external surface video. | 634 // implementation. Return nullptr to disable external surface video. |
| 630 virtual ExternalVideoSurfaceContainer* | 635 virtual ExternalVideoSurfaceContainer* |
| 631 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 636 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 632 #endif | 637 #endif |
| 633 }; | 638 }; |
| 634 | 639 |
| 635 } // namespace content | 640 } // namespace content |
| 636 | 641 |
| 637 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 642 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |