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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 class BrowserContext; | 86 class BrowserContext; |
87 class BrowserMainParts; | 87 class BrowserMainParts; |
88 class BrowserPluginGuestDelegate; | 88 class BrowserPluginGuestDelegate; |
89 class BrowserPpapiHost; | 89 class BrowserPpapiHost; |
90 class BrowserURLHandler; | 90 class BrowserURLHandler; |
91 class DesktopNotificationDelegate; | 91 class DesktopNotificationDelegate; |
92 class DevToolsManagerDelegate; | 92 class DevToolsManagerDelegate; |
93 class ExternalVideoSurfaceContainer; | 93 class ExternalVideoSurfaceContainer; |
94 class LocationProvider; | 94 class LocationProvider; |
95 class MediaObserver; | 95 class MediaObserver; |
| 96 class PushMessagingService; |
96 class QuotaPermissionContext; | 97 class QuotaPermissionContext; |
97 class RenderFrameHost; | 98 class RenderFrameHost; |
98 class RenderProcessHost; | 99 class RenderProcessHost; |
99 class RenderViewHost; | 100 class RenderViewHost; |
100 class ResourceContext; | 101 class ResourceContext; |
101 class SiteInstance; | 102 class SiteInstance; |
102 class SpeechRecognitionManagerDelegate; | 103 class SpeechRecognitionManagerDelegate; |
103 class VibrationProvider; | 104 class VibrationProvider; |
104 class WebContents; | 105 class WebContents; |
105 class WebContentsViewDelegate; | 106 class WebContentsViewDelegate; |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 | 498 |
498 // Notifies the embedder that the ResourceDispatcherHost has been created. | 499 // Notifies the embedder that the ResourceDispatcherHost has been created. |
499 // This is when it can optionally add a delegate. | 500 // This is when it can optionally add a delegate. |
500 virtual void ResourceDispatcherHostCreated() {} | 501 virtual void ResourceDispatcherHostCreated() {} |
501 | 502 |
502 // Allows the embedder to return a delegate for the SpeechRecognitionManager. | 503 // Allows the embedder to return a delegate for the SpeechRecognitionManager. |
503 // The delegate will be owned by the manager. It's valid to return NULL. | 504 // The delegate will be owned by the manager. It's valid to return NULL. |
504 virtual SpeechRecognitionManagerDelegate* | 505 virtual SpeechRecognitionManagerDelegate* |
505 GetSpeechRecognitionManagerDelegate(); | 506 GetSpeechRecognitionManagerDelegate(); |
506 | 507 |
| 508 // Allows the embedder to provide an implementation of PushMessagingService. |
| 509 // Ownership is not transferred to the caller; instead the caller will assume |
| 510 // the service lifetime exceeds that of RenderProcessHost. |
| 511 // It's valid to return NULL. |
| 512 virtual PushMessagingService* CreatePushMessagingService( |
| 513 BrowserContext* browser_context); |
| 514 |
507 // Getters for common objects. | 515 // Getters for common objects. |
508 virtual net::NetLog* GetNetLog(); | 516 virtual net::NetLog* GetNetLog(); |
509 | 517 |
510 // Creates a new AccessTokenStore for gelocation. | 518 // Creates a new AccessTokenStore for gelocation. |
511 virtual AccessTokenStore* CreateAccessTokenStore(); | 519 virtual AccessTokenStore* CreateAccessTokenStore(); |
512 | 520 |
513 // Returns true if fast shutdown is possible. | 521 // Returns true if fast shutdown is possible. |
514 virtual bool IsFastShutdownPossible(); | 522 virtual bool IsFastShutdownPossible(); |
515 | 523 |
516 // Called by WebContents to override the WebKit preferences that are used by | 524 // Called by WebContents to override the WebKit preferences that are used by |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 650 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
643 // implementation. Return NULL to disable external surface video. | 651 // implementation. Return NULL to disable external surface video. |
644 virtual ExternalVideoSurfaceContainer* | 652 virtual ExternalVideoSurfaceContainer* |
645 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 653 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
646 #endif | 654 #endif |
647 }; | 655 }; |
648 | 656 |
649 } // namespace content | 657 } // namespace content |
650 | 658 |
651 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 659 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |