OLD | NEW |
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // (Often, the call out to the client can happen in a different part of the code | 79 // (Often, the call out to the client can happen in a different part of the code |
80 // that either already has a hook out to the embedder, or calls out to one of | 80 // that either already has a hook out to the embedder, or calls out to one of |
81 // the observer interfaces.) | 81 // the observer interfaces.) |
82 class ContentBrowserClient { | 82 class ContentBrowserClient { |
83 public: | 83 public: |
84 virtual ~ContentBrowserClient() {} | 84 virtual ~ContentBrowserClient() {} |
85 | 85 |
86 // Allows the embedder to set any number of custom BrowserMainParts | 86 // Allows the embedder to set any number of custom BrowserMainParts |
87 // implementations for the browser startup code. See comments in | 87 // implementations for the browser startup code. See comments in |
88 // browser_main_parts.h. | 88 // browser_main_parts.h. |
89 virtual BrowserMainParts* CreateBrowserMainParts( | 89 virtual void CreateBrowserMainParts( |
90 const content::MainFunctionParams& parameters) = 0; | 90 const content::MainFunctionParams& parameters, |
| 91 std::vector<BrowserMainParts*>* parts_list) = 0; |
91 | 92 |
92 // Platform-specific creator. Use this to construct new RenderWidgetHostViews | 93 // Platform-specific creator. Use this to construct new RenderWidgetHostViews |
93 // rather than using RenderWidgetHostViewWin & friends. | 94 // rather than using RenderWidgetHostViewWin & friends. |
94 // | 95 // |
95 // This function must NOT size it, because the RenderView in the renderer | 96 // 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 | 97 // 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 | 98 // resize ack" flag, and the ack would never come becasue no RenderView |
98 // received it. | 99 // received it. |
99 // | 100 // |
100 // The RenderWidgetHost must already be created (because we can't know if it's | 101 // 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 Loading... |
362 // This is called on a worker thread. | 363 // This is called on a worker thread. |
363 virtual | 364 virtual |
364 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 365 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
365 const GURL& url) = 0; | 366 const GURL& url) = 0; |
366 #endif | 367 #endif |
367 }; | 368 }; |
368 | 369 |
369 } // namespace content | 370 } // namespace content |
370 | 371 |
371 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 372 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |