Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 949293002: Implement a poor man's PostAfterStartupTask() function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 change the default behavior of
146 // BrowserThread::PostAfterStartupTask to better match whatever
147 // definition of "startup" the embedder has in mind.
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
145 // If content creates the WebContentsView implementation, it will ask the 154 // If content creates the WebContentsView implementation, it will ask the
146 // 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
147 // own the delegate. 156 // own the delegate.
148 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( 157 virtual WebContentsViewDelegate* GetWebContentsViewDelegate(
149 WebContents* web_contents); 158 WebContents* web_contents);
150 159
151 // 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
152 // the content layer adds its own BrowserMessageFilters, so that the 161 // the content layer adds its own BrowserMessageFilters, so that the
153 // embedder's IPC filters have priority. 162 // embedder's IPC filters have priority.
154 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} 163 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {}
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 663 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
655 // implementation. Return nullptr to disable external surface video. 664 // implementation. Return nullptr to disable external surface video.
656 virtual ExternalVideoSurfaceContainer* 665 virtual ExternalVideoSurfaceContainer*
657 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 666 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
658 #endif 667 #endif
659 }; 668 };
660 669
661 } // namespace content 670 } // namespace content
662 671
663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 672 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698