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

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

Issue 8598005: Add ChromeBrowserMainExtraParts for non main parts (take 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // (Often, the call out to the client can happen in a different part of the code 78 // (Often, the call out to the client can happen in a different part of the code
79 // that either already has a hook out to the embedder, or calls out to one of 79 // that either already has a hook out to the embedder, or calls out to one of
80 // the observer interfaces.) 80 // the observer interfaces.)
81 class ContentBrowserClient { 81 class ContentBrowserClient {
82 public: 82 public:
83 virtual ~ContentBrowserClient() {} 83 virtual ~ContentBrowserClient() {}
84 84
85 // Allows the embedder to set any number of custom BrowserMainParts 85 // Allows the embedder to set any number of custom BrowserMainParts
86 // implementations for the browser startup code. See comments in 86 // implementations for the browser startup code. See comments in
87 // browser_main_parts.h. 87 // browser_main_parts.h.
88 virtual void CreateBrowserMainParts( 88 virtual BrowserMainParts* CreateBrowserMainParts(
89 const content::MainFunctionParams& parameters, 89 const content::MainFunctionParams& parameters) = 0;
90 std::vector<BrowserMainParts*>* parts_list) = 0;
91 90
92 // Platform-specific creator. Use this to construct new RenderWidgetHostViews 91 // Platform-specific creator. Use this to construct new RenderWidgetHostViews
93 // rather than using RenderWidgetHostViewWin & friends. 92 // rather than using RenderWidgetHostViewWin & friends.
94 // 93 //
95 // This function must NOT size it, because the RenderView in the renderer 94 // This function must NOT size it, because the RenderView in the renderer
96 // wouldn't have been created yet. The widget would set its "waiting for 95 // wouldn't have been created yet. The widget would set its "waiting for
97 // resize ack" flag, and the ack would never come becasue no RenderView 96 // resize ack" flag, and the ack would never come becasue no RenderView
98 // received it. 97 // received it.
99 // 98 //
100 // The RenderWidgetHost must already be created (because we can't know if it's 99 // The RenderWidgetHost must already be created (because we can't know if it's
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 // This is called on a worker thread. 361 // This is called on a worker thread.
363 virtual 362 virtual
364 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 363 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
365 const GURL& url) = 0; 364 const GURL& url) = 0;
366 #endif 365 #endif
367 }; 366 };
368 367
369 } // namespace content 368 } // namespace content
370 369
371 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 370 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_main_parts.h ('k') | content/shell/shell_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698