| 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 defer the posting of non-critical tasks until |
| 145 // after "startup" is complete for whatever definition of startup the |
| 146 // embedder has. The default implementation does no deferral. |
| 147 virtual void PostAfterStartupTask( |
| 148 const tracked_objects::Location& from_here, |
| 149 const scoped_refptr<base::TaskRunner>& task_runner, |
| 150 const base::Closure& task); |
| 151 |
| 144 // If content creates the WebContentsView implementation, it will ask the | 152 // If content creates the WebContentsView implementation, it will ask the |
| 145 // embedder to return an (optional) delegate to customize it. The view will | 153 // embedder to return an (optional) delegate to customize it. The view will |
| 146 // own the delegate. | 154 // own the delegate. |
| 147 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 155 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
| 148 WebContents* web_contents); | 156 WebContents* web_contents); |
| 149 | 157 |
| 150 // Notifies that a render process will be created. This is called before | 158 // Notifies that a render process will be created. This is called before |
| 151 // the content layer adds its own BrowserMessageFilters, so that the | 159 // the content layer adds its own BrowserMessageFilters, so that the |
| 152 // embedder's IPC filters have priority. | 160 // embedder's IPC filters have priority. |
| 153 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} | 161 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 | 661 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 654 // implementation. Return nullptr to disable external surface video. | 662 // implementation. Return nullptr to disable external surface video. |
| 655 virtual ExternalVideoSurfaceContainer* | 663 virtual ExternalVideoSurfaceContainer* |
| 656 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 664 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 657 #endif | 665 #endif |
| 658 }; | 666 }; |
| 659 | 667 |
| 660 } // namespace content | 668 } // namespace content |
| 661 | 669 |
| 662 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 670 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |