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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 const MainFunctionParams& parameters); | 152 const MainFunctionParams& parameters); |
153 | 153 |
154 // Allows the embedder to change the default behavior of | 154 // Allows the embedder to change the default behavior of |
155 // BrowserThread::PostAfterStartupTask to better match whatever | 155 // BrowserThread::PostAfterStartupTask to better match whatever |
156 // definition of "startup" the embedder has in mind. This may be | 156 // definition of "startup" the embedder has in mind. This may be |
157 // called on any thread. | 157 // called on any thread. |
158 // Note: see related BrowserThread::PostAfterStartupTask. | 158 // Note: see related BrowserThread::PostAfterStartupTask. |
159 virtual void PostAfterStartupTask( | 159 virtual void PostAfterStartupTask( |
160 const tracked_objects::Location& from_here, | 160 const tracked_objects::Location& from_here, |
161 const scoped_refptr<base::TaskRunner>& task_runner, | 161 const scoped_refptr<base::TaskRunner>& task_runner, |
162 const base::Closure& task); | 162 base::OnceClosure task); |
163 | 163 |
164 // Allows the embedder to indicate whether it considers startup to be | 164 // Allows the embedder to indicate whether it considers startup to be |
165 // complete. May be called on any thread. This should be called on a one-off | 165 // complete. May be called on any thread. This should be called on a one-off |
166 // basis; if you need to poll this function constantly, use the above | 166 // basis; if you need to poll this function constantly, use the above |
167 // PostAfterStartupTask() API instead. | 167 // PostAfterStartupTask() API instead. |
168 virtual bool IsBrowserStartupComplete(); | 168 virtual bool IsBrowserStartupComplete(); |
169 | 169 |
170 // If content creates the WebContentsView implementation, it will ask the | 170 // If content creates the WebContentsView implementation, it will ask the |
171 // embedder to return an (optional) delegate to customize it. The view will | 171 // embedder to return an (optional) delegate to customize it. The view will |
172 // own the delegate. | 172 // own the delegate. |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 795 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
796 // implementation. Return nullptr to disable external surface video. | 796 // implementation. Return nullptr to disable external surface video. |
797 virtual ExternalVideoSurfaceContainer* | 797 virtual ExternalVideoSurfaceContainer* |
798 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 798 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
799 #endif | 799 #endif |
800 }; | 800 }; |
801 | 801 |
802 } // namespace content | 802 } // namespace content |
803 | 803 |
804 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 804 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |