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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 class CONTENT_EXPORT ContentBrowserClient { | 135 class CONTENT_EXPORT ContentBrowserClient { |
136 public: | 136 public: |
137 virtual ~ContentBrowserClient() {} | 137 virtual ~ContentBrowserClient() {} |
138 | 138 |
139 // Allows the embedder to set any number of custom BrowserMainParts | 139 // Allows the embedder to set any number of custom BrowserMainParts |
140 // implementations for the browser startup code. See comments in | 140 // implementations for the browser startup code. See comments in |
141 // browser_main_parts.h. | 141 // browser_main_parts.h. |
142 virtual BrowserMainParts* CreateBrowserMainParts( | 142 virtual BrowserMainParts* CreateBrowserMainParts( |
143 const MainFunctionParams& parameters); | 143 const MainFunctionParams& parameters); |
144 | 144 |
| 145 // Allows the embedder to defer the posting of non-critical tasks until |
| 146 // after "startup" is complete for whatever definition of startup the |
| 147 // embedder desires. The default implementation does no deferral. |
| 148 virtual void PostAfterStartupTask( |
| 149 const tracked_objects::Location& from_here, |
| 150 const scoped_refptr<base::TaskRunner>& task_runner, |
| 151 const base::Closure& task); |
| 152 |
145 // If content creates the WebContentsView implementation, it will ask the | 153 // If content creates the WebContentsView implementation, it will ask the |
146 // embedder to return an (optional) delegate to customize it. The view will | 154 // embedder to return an (optional) delegate to customize it. The view will |
147 // own the delegate. | 155 // own the delegate. |
148 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 156 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
149 WebContents* web_contents); | 157 WebContents* web_contents); |
150 | 158 |
151 // Notifies that a render process will be created. This is called before | 159 // Notifies that a render process will be created. This is called before |
152 // the content layer adds its own BrowserMessageFilters, so that the | 160 // the content layer adds its own BrowserMessageFilters, so that the |
153 // embedder's IPC filters have priority. | 161 // embedder's IPC filters have priority. |
154 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} | 162 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 662 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
655 // implementation. Return nullptr to disable external surface video. | 663 // implementation. Return nullptr to disable external surface video. |
656 virtual ExternalVideoSurfaceContainer* | 664 virtual ExternalVideoSurfaceContainer* |
657 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 665 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
658 #endif | 666 #endif |
659 }; | 667 }; |
660 | 668 |
661 } // namespace content | 669 } // namespace content |
662 | 670 |
663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 671 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |