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 <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, | 158 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, |
159 const GURL& new_url); | 159 const GURL& new_url); |
160 | 160 |
161 // Returns true if the given navigation redirect should cause a renderer | 161 // Returns true if the given navigation redirect should cause a renderer |
162 // process swap. | 162 // process swap. |
163 // This is called on the IO thread. | 163 // This is called on the IO thread. |
164 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, | 164 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, |
165 const GURL& current_url, | 165 const GURL& current_url, |
166 const GURL& new_url); | 166 const GURL& new_url); |
167 | 167 |
| 168 // Notifies that a <webview> guest WebContents has been created. |
| 169 virtual void GuestWebContentsCreated(WebContents* guest_web_contents, |
| 170 WebContents* embedder_web_contents) {} |
| 171 |
168 // See CharacterEncoding's comment. | 172 // See CharacterEncoding's comment. |
169 virtual std::string GetCanonicalEncodingNameByAliasName( | 173 virtual std::string GetCanonicalEncodingNameByAliasName( |
170 const std::string& alias_name); | 174 const std::string& alias_name); |
171 | 175 |
172 // Allows the embedder to pass extra command line flags. | 176 // Allows the embedder to pass extra command line flags. |
173 // switches::kProcessType will already be set at this point. | 177 // switches::kProcessType will already be set at this point. |
174 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 178 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
175 int child_process_id) {} | 179 int child_process_id) {} |
176 | 180 |
177 // Returns the locale used by the application. | 181 // Returns the locale used by the application. |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 // This is called on a worker thread. | 467 // This is called on a worker thread. |
464 virtual | 468 virtual |
465 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 469 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
466 const GURL& url); | 470 const GURL& url); |
467 #endif | 471 #endif |
468 }; | 472 }; |
469 | 473 |
470 } // namespace content | 474 } // namespace content |
471 | 475 |
472 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 476 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |