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