| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 | 50 |
| 51 namespace blink { | 51 namespace blink { |
| 52 struct WebWindowFeatures; | 52 struct WebWindowFeatures; |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace gfx { | 55 namespace gfx { |
| 56 class ImageSkia; | 56 class ImageSkia; |
| 57 } | 57 } |
| 58 | 58 |
| 59 namespace gpu { |
| 60 class GpuChannelEstablishFactory; |
| 61 } |
| 62 |
| 59 namespace media { | 63 namespace media { |
| 60 class CdmFactory; | 64 class CdmFactory; |
| 61 } | 65 } |
| 62 | 66 |
| 63 namespace shell { | 67 namespace shell { |
| 64 class InterfaceRegistry; | 68 class InterfaceRegistry; |
| 65 class Service; | 69 class Service; |
| 66 } | 70 } |
| 67 | 71 |
| 68 namespace net { | 72 namespace net { |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 | 568 |
| 565 // Notification that a pepper plugin has just been spawned. This allows the | 569 // Notification that a pepper plugin has just been spawned. This allows the |
| 566 // embedder to add filters onto the host to implement interfaces. | 570 // embedder to add filters onto the host to implement interfaces. |
| 567 // This is called on the IO thread. | 571 // This is called on the IO thread. |
| 568 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} | 572 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} |
| 569 | 573 |
| 570 // Gets the host for an external out-of-process plugin. | 574 // Gets the host for an external out-of-process plugin. |
| 571 virtual BrowserPpapiHost* GetExternalBrowserPpapiHost( | 575 virtual BrowserPpapiHost* GetExternalBrowserPpapiHost( |
| 572 int plugin_child_id); | 576 int plugin_child_id); |
| 573 | 577 |
| 578 // Gets the factory to use to establish a connection to the GPU process. |
| 579 virtual gpu::GpuChannelEstablishFactory* GetGpuChannelEstablishFactory(); |
| 580 |
| 574 // Returns true if the socket operation specified by |params| is allowed from | 581 // Returns true if the socket operation specified by |params| is allowed from |
| 575 // the given |browser_context| and |url|. If |params| is nullptr, this method | 582 // the given |browser_context| and |url|. If |params| is nullptr, this method |
| 576 // checks the basic "socket" permission, which is for those operations that | 583 // checks the basic "socket" permission, which is for those operations that |
| 577 // don't require a specific socket permission rule. | 584 // don't require a specific socket permission rule. |
| 578 // |private_api| indicates whether this permission check is for the private | 585 // |private_api| indicates whether this permission check is for the private |
| 579 // Pepper socket API or the public one. | 586 // Pepper socket API or the public one. |
| 580 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 587 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
| 581 const GURL& url, | 588 const GURL& url, |
| 582 bool private_api, | 589 bool private_api, |
| 583 const SocketPermissionRequest* params); | 590 const SocketPermissionRequest* params); |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 785 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 779 // implementation. Return nullptr to disable external surface video. | 786 // implementation. Return nullptr to disable external surface video. |
| 780 virtual ExternalVideoSurfaceContainer* | 787 virtual ExternalVideoSurfaceContainer* |
| 781 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 788 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 782 #endif | 789 #endif |
| 783 }; | 790 }; |
| 784 | 791 |
| 785 } // namespace content | 792 } // namespace content |
| 786 | 793 |
| 787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 794 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |