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