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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 class PlatformNotificationService; | 98 class PlatformNotificationService; |
99 class PresentationServiceDelegate; | 99 class PresentationServiceDelegate; |
100 class QuotaPermissionContext; | 100 class QuotaPermissionContext; |
101 class RenderFrameHost; | 101 class RenderFrameHost; |
102 class RenderProcessHost; | 102 class RenderProcessHost; |
103 class RenderViewHost; | 103 class RenderViewHost; |
104 class ResourceContext; | 104 class ResourceContext; |
105 class ServiceRegistry; | 105 class ServiceRegistry; |
106 class SiteInstance; | 106 class SiteInstance; |
107 class SpeechRecognitionManagerDelegate; | 107 class SpeechRecognitionManagerDelegate; |
| 108 class TracingDelegate; |
108 class WebContents; | 109 class WebContents; |
109 class WebContentsViewDelegate; | 110 class WebContentsViewDelegate; |
110 struct MainFunctionParams; | 111 struct MainFunctionParams; |
111 struct OpenURLParams; | 112 struct OpenURLParams; |
112 struct Referrer; | 113 struct Referrer; |
113 struct WebPreferences; | 114 struct WebPreferences; |
114 | 115 |
115 // A mapping from the scheme name to the protocol handler that services its | 116 // A mapping from the scheme name to the protocol handler that services its |
116 // content. | 117 // content. |
117 typedef std::map< | 118 typedef std::map< |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 // Return nullptr to use the default one for the platform to be created. | 564 // Return nullptr to use the default one for the platform to be created. |
564 // FYI: Used by an external project; please don't remove. | 565 // FYI: Used by an external project; please don't remove. |
565 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more | 566 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more |
566 // information. | 567 // information. |
567 virtual LocationProvider* OverrideSystemLocationProvider(); | 568 virtual LocationProvider* OverrideSystemLocationProvider(); |
568 | 569 |
569 // Creates a new DevToolsManagerDelegate. The caller owns the returned value. | 570 // Creates a new DevToolsManagerDelegate. The caller owns the returned value. |
570 // It's valid to return nullptr. | 571 // It's valid to return nullptr. |
571 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); | 572 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); |
572 | 573 |
| 574 // Creates a new TracingDelegate. The caller owns the returned value. |
| 575 // It's valid to return nullptr. |
| 576 virtual TracingDelegate* GetTracingDelegate(); |
| 577 |
573 // Returns true if plugin referred to by the url can use | 578 // Returns true if plugin referred to by the url can use |
574 // pp::FileIO::RequestOSFileHandle. | 579 // pp::FileIO::RequestOSFileHandle. |
575 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 580 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
576 BrowserContext* browser_context, | 581 BrowserContext* browser_context, |
577 const GURL& url); | 582 const GURL& url); |
578 | 583 |
579 // Returns true if dev channel APIs are available for plugins. | 584 // Returns true if dev channel APIs are available for plugins. |
580 virtual bool IsPluginAllowedToUseDevChannelAPIs( | 585 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
581 BrowserContext* browser_context, | 586 BrowserContext* browser_context, |
582 const GURL& url); | 587 const GURL& url); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 650 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
646 // implementation. Return nullptr to disable external surface video. | 651 // implementation. Return nullptr to disable external surface video. |
647 virtual ExternalVideoSurfaceContainer* | 652 virtual ExternalVideoSurfaceContainer* |
648 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 653 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
649 #endif | 654 #endif |
650 }; | 655 }; |
651 | 656 |
652 } // namespace content | 657 } // namespace content |
653 | 658 |
654 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 659 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |