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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 class CONTENT_EXPORT ContentBrowserClient { | 133 class CONTENT_EXPORT ContentBrowserClient { |
134 public: | 134 public: |
135 virtual ~ContentBrowserClient() {} | 135 virtual ~ContentBrowserClient() {} |
136 | 136 |
137 // Allows the embedder to set any number of custom BrowserMainParts | 137 // Allows the embedder to set any number of custom BrowserMainParts |
138 // implementations for the browser startup code. See comments in | 138 // implementations for the browser startup code. See comments in |
139 // browser_main_parts.h. | 139 // browser_main_parts.h. |
140 virtual BrowserMainParts* CreateBrowserMainParts( | 140 virtual BrowserMainParts* CreateBrowserMainParts( |
141 const MainFunctionParams& parameters); | 141 const MainFunctionParams& parameters); |
142 | 142 |
| 143 // Allows the embedder to change the default behavior of |
| 144 // BrowserThread::PostAfterStartupTask to better match whatever |
| 145 // definition of "startup" the embedder has in mind. This may be |
| 146 // called on any thread. |
| 147 // Note: see related BrowserThread::PostAfterStartupTask. |
| 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 |
143 // If content creates the WebContentsView implementation, it will ask the | 153 // If content creates the WebContentsView implementation, it will ask the |
144 // 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 |
145 // own the delegate. | 155 // own the delegate. |
146 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 156 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
147 WebContents* web_contents); | 157 WebContents* web_contents); |
148 | 158 |
149 // 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 |
150 // the content layer adds its own BrowserMessageFilters, so that the | 160 // the content layer adds its own BrowserMessageFilters, so that the |
151 // embedder's IPC filters have priority. | 161 // embedder's IPC filters have priority. |
152 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} | 162 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 627 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
618 // implementation. Return nullptr to disable external surface video. | 628 // implementation. Return nullptr to disable external surface video. |
619 virtual ExternalVideoSurfaceContainer* | 629 virtual ExternalVideoSurfaceContainer* |
620 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 630 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
621 #endif | 631 #endif |
622 }; | 632 }; |
623 | 633 |
624 } // namespace content | 634 } // namespace content |
625 | 635 |
626 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 636 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |