| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 } | 76 } |
| 77 | 77 |
| 78 namespace storage { | 78 namespace storage { |
| 79 class ExternalMountPoints; | 79 class ExternalMountPoints; |
| 80 class FileSystemBackend; | 80 class FileSystemBackend; |
| 81 } | 81 } |
| 82 | 82 |
| 83 namespace content { | 83 namespace content { |
| 84 | 84 |
| 85 class AccessTokenStore; | 85 class AccessTokenStore; |
| 86 class AfterStartupTaskPoster; |
| 86 class BrowserChildProcessHost; | 87 class BrowserChildProcessHost; |
| 87 class BrowserContext; | 88 class BrowserContext; |
| 88 class BrowserMainParts; | 89 class BrowserMainParts; |
| 89 class BrowserPluginGuestDelegate; | 90 class BrowserPluginGuestDelegate; |
| 90 class BrowserPpapiHost; | 91 class BrowserPpapiHost; |
| 91 class BrowserURLHandler; | 92 class BrowserURLHandler; |
| 92 class DevToolsManagerDelegate; | 93 class DevToolsManagerDelegate; |
| 93 class ExternalVideoSurfaceContainer; | 94 class ExternalVideoSurfaceContainer; |
| 94 class LocationProvider; | 95 class LocationProvider; |
| 95 class MediaObserver; | 96 class MediaObserver; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 class CONTENT_EXPORT ContentBrowserClient { | 135 class CONTENT_EXPORT ContentBrowserClient { |
| 135 public: | 136 public: |
| 136 virtual ~ContentBrowserClient() {} | 137 virtual ~ContentBrowserClient() {} |
| 137 | 138 |
| 138 // Allows the embedder to set any number of custom BrowserMainParts | 139 // Allows the embedder to set any number of custom BrowserMainParts |
| 139 // implementations for the browser startup code. See comments in | 140 // implementations for the browser startup code. See comments in |
| 140 // browser_main_parts.h. | 141 // browser_main_parts.h. |
| 141 virtual BrowserMainParts* CreateBrowserMainParts( | 142 virtual BrowserMainParts* CreateBrowserMainParts( |
| 142 const MainFunctionParams& parameters); | 143 const MainFunctionParams& parameters); |
| 143 | 144 |
| 145 // Allows the embedder to defer the posting of non-critical tasks until |
| 146 // after the "startup" is complete. The default implementation does no |
| 147 // deferral. |
| 148 virtual AfterStartupTaskPoster* GetAfterStartupTaskPoster(); |
| 149 |
| 144 // If content creates the WebContentsView implementation, it will ask the | 150 // If content creates the WebContentsView implementation, it will ask the |
| 145 // embedder to return an (optional) delegate to customize it. The view will | 151 // embedder to return an (optional) delegate to customize it. The view will |
| 146 // own the delegate. | 152 // own the delegate. |
| 147 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 153 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
| 148 WebContents* web_contents); | 154 WebContents* web_contents); |
| 149 | 155 |
| 150 // Notifies that a render process will be created. This is called before | 156 // Notifies that a render process will be created. This is called before |
| 151 // the content layer adds its own BrowserMessageFilters, so that the | 157 // the content layer adds its own BrowserMessageFilters, so that the |
| 152 // embedder's IPC filters have priority. | 158 // embedder's IPC filters have priority. |
| 153 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} | 159 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 659 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 654 // implementation. Return nullptr to disable external surface video. | 660 // implementation. Return nullptr to disable external surface video. |
| 655 virtual ExternalVideoSurfaceContainer* | 661 virtual ExternalVideoSurfaceContainer* |
| 656 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 662 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 657 #endif | 663 #endif |
| 658 }; | 664 }; |
| 659 | 665 |
| 660 } // namespace content | 666 } // namespace content |
| 661 | 667 |
| 662 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 668 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |