| 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 virtual void OverridePageVisibilityState( | 609 virtual void OverridePageVisibilityState( |
| 610 RenderFrameHost* render_frame_host, | 610 RenderFrameHost* render_frame_host, |
| 611 blink::WebPageVisibilityState* visibility_state) {} | 611 blink::WebPageVisibilityState* visibility_state) {} |
| 612 | 612 |
| 613 // Allows an embedder to provide its own PresentationServiceDelegate | 613 // Allows an embedder to provide its own PresentationServiceDelegate |
| 614 // implementation. Returns nullptr if unavailable. | 614 // implementation. Returns nullptr if unavailable. |
| 615 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 615 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( |
| 616 WebContents* web_contents); | 616 WebContents* web_contents); |
| 617 | 617 |
| 618 // Allows programmatic opening of a new tab/window without going through | 618 // Allows programmatic opening of a new tab/window without going through |
| 619 // another WebContents. For example, from a Worker. | 619 // another WebContents. For example, from a Worker. |callback| will be |
| 620 virtual WebContents* OpenURL(BrowserContext* browser_context, | 620 // invoked with the appropriate WebContents* when available. |
| 621 const OpenURLParams& params); | 621 virtual void OpenURL(BrowserContext* browser_context, |
| 622 const OpenURLParams& params, |
| 623 base::Callback<void(WebContents*)> callback) {} |
| 622 | 624 |
| 623 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 625 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 624 // Populates |mappings| with all files that need to be mapped before launching | 626 // Populates |mappings| with all files that need to be mapped before launching |
| 625 // a child process. | 627 // a child process. |
| 626 virtual void GetAdditionalMappedFilesForChildProcess( | 628 virtual void GetAdditionalMappedFilesForChildProcess( |
| 627 const base::CommandLine& command_line, | 629 const base::CommandLine& command_line, |
| 628 int child_process_id, | 630 int child_process_id, |
| 629 FileDescriptorInfo* mappings) {} | 631 FileDescriptorInfo* mappings) {} |
| 630 #endif | 632 #endif |
| 631 | 633 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 644 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 646 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 645 // implementation. Return nullptr to disable external surface video. | 647 // implementation. Return nullptr to disable external surface video. |
| 646 virtual ExternalVideoSurfaceContainer* | 648 virtual ExternalVideoSurfaceContainer* |
| 647 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 649 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 648 #endif | 650 #endif |
| 649 }; | 651 }; |
| 650 | 652 |
| 651 } // namespace content | 653 } // namespace content |
| 652 | 654 |
| 653 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 655 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |