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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 // Returns true if the given navigation redirect should cause a renderer | 292 // Returns true if the given navigation redirect should cause a renderer |
293 // process swap. | 293 // process swap. |
294 virtual bool ShouldSwapProcessesForRedirect(BrowserContext* browser_context, | 294 virtual bool ShouldSwapProcessesForRedirect(BrowserContext* browser_context, |
295 const GURL& current_url, | 295 const GURL& current_url, |
296 const GURL& new_url); | 296 const GURL& new_url); |
297 | 297 |
298 // Returns true if the passed in URL should be assigned as the site of the | 298 // Returns true if the passed in URL should be assigned as the site of the |
299 // current SiteInstance, if it does not yet have a site. | 299 // current SiteInstance, if it does not yet have a site. |
300 virtual bool ShouldAssignSiteForURL(const GURL& url); | 300 virtual bool ShouldAssignSiteForURL(const GURL& url); |
301 | 301 |
302 // See CharacterEncoding's comment. | |
303 virtual std::string GetCanonicalEncodingNameByAliasName( | |
304 const std::string& alias_name); | |
305 | |
306 // Allows the embedder to pass extra command line flags. | 302 // Allows the embedder to pass extra command line flags. |
307 // switches::kProcessType will already be set at this point. | 303 // switches::kProcessType will already be set at this point. |
308 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 304 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
309 int child_process_id) {} | 305 int child_process_id) {} |
310 | 306 |
311 // Returns the locale used by the application. | 307 // Returns the locale used by the application. |
312 // This is called on the UI and IO threads. | 308 // This is called on the UI and IO threads. |
313 virtual std::string GetApplicationLocale(); | 309 virtual std::string GetApplicationLocale(); |
314 | 310 |
315 // Returns the languages used in the Accept-Languages HTTP header. | 311 // Returns the languages used in the Accept-Languages HTTP header. |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | 804 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
809 index_to_traits_callback) {} | 805 index_to_traits_callback) {} |
810 | 806 |
811 // Performs any necessary PostTask API redirection to the task scheduler. | 807 // Performs any necessary PostTask API redirection to the task scheduler. |
812 virtual void PerformExperimentalTaskSchedulerRedirections() {} | 808 virtual void PerformExperimentalTaskSchedulerRedirections() {} |
813 }; | 809 }; |
814 | 810 |
815 } // namespace content | 811 } // namespace content |
816 | 812 |
817 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 813 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |