| 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 // Returns true if dev channel APIs are available for plugins. | 571 // Returns true if dev channel APIs are available for plugins. |
| 572 virtual bool IsPluginAllowedToUseDevChannelAPIs( | 572 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
| 573 BrowserContext* browser_context, | 573 BrowserContext* browser_context, |
| 574 const GURL& url); | 574 const GURL& url); |
| 575 | 575 |
| 576 // Allows to override browser Mojo services exposed through the | 576 // Allows to override browser Mojo services exposed through the |
| 577 // RenderProcessHost. | 577 // RenderProcessHost. |
| 578 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} | 578 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} |
| 579 | 579 |
| 580 // Allows to override browser Mojo services exposed through the | 580 // Allows to override browser Mojo services exposed through the |
| 581 // RenderFrameHost. | 581 // FrameMojoShell. |
| 582 virtual void OverrideRenderFrameMojoServices( | 582 virtual void OverrideFrameMojoShellServices( |
| 583 ServiceRegistry* registry, | 583 ServiceRegistry* registry, |
| 584 RenderFrameHost* render_frame_host) {} | 584 RenderFrameHost* render_frame_host) {} |
| 585 | 585 |
| 586 using StaticMojoApplicationMap = | 586 using StaticMojoApplicationMap = |
| 587 std::map<GURL, base::Callback<scoped_ptr<mojo::ApplicationDelegate>()>>; | 587 std::map<GURL, base::Callback<scoped_ptr<mojo::ApplicationDelegate>()>>; |
| 588 | 588 |
| 589 // Registers in-process Mojo application loaders with the browser's global | 589 // Registers in-process Mojo application loaders with the browser's global |
| 590 // Mojo shell. | 590 // Mojo shell. |
| 591 virtual void RegisterMojoApplications(StaticMojoApplicationMap* apps) {} | 591 virtual void RegisterMojoApplications(StaticMojoApplicationMap* apps) {} |
| 592 | 592 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 652 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 653 // implementation. Return nullptr to disable external surface video. | 653 // implementation. Return nullptr to disable external surface video. |
| 654 virtual ExternalVideoSurfaceContainer* | 654 virtual ExternalVideoSurfaceContainer* |
| 655 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 655 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 656 #endif | 656 #endif |
| 657 }; | 657 }; |
| 658 | 658 |
| 659 } // namespace content | 659 } // namespace content |
| 660 | 660 |
| 661 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 661 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |