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

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

Issue 2578003002: Move |GetCanonicalEncodingNameByAliasName| to base/i18n (Closed)
Patch Set: rebased Created 3 years, 11 months 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
OLDNEW
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
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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 virtual bool ShouldRedirectDOMStorageTaskRunner(); 821 virtual bool ShouldRedirectDOMStorageTaskRunner();
826 822
827 // If this returns true, all BrowserThreads (but UI/IO) that support it on 823 // If this returns true, all BrowserThreads (but UI/IO) that support it on
828 // this platform will experimentally be redirected to TaskScheduler. 824 // this platform will experimentally be redirected to TaskScheduler.
829 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); 825 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
830 }; 826 };
831 827
832 } // namespace content 828 } // namespace content
833 829
834 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 830 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698