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_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const std::string& alias_name); | 66 const std::string& alias_name); |
67 | 67 |
68 // Allows the embedder to pass extra command line flags. | 68 // Allows the embedder to pass extra command line flags. |
69 // switches::kProcessType will already be set at this point. | 69 // switches::kProcessType will already be set at this point. |
70 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 70 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
71 int child_process_id); | 71 int child_process_id); |
72 | 72 |
73 // Returns the locale used by the application. | 73 // Returns the locale used by the application. |
74 virtual std::string GetApplicationLocale(); | 74 virtual std::string GetApplicationLocale(); |
75 | 75 |
| 76 // Returns the languages used in the Accept-Languages HTTP header. |
| 77 // (Not called GetAcceptLanguages so it doesn't clash with win32). |
| 78 virtual std::string GetAcceptLangs(const TabContents* tab); |
| 79 |
76 // Allow the embedder to control if an AppCache can be used for the given url. | 80 // Allow the embedder to control if an AppCache can be used for the given url. |
77 // This is called on the IO thread. | 81 // This is called on the IO thread. |
78 virtual bool AllowAppCache(const GURL& manifest_url, | 82 virtual bool AllowAppCache(const GURL& manifest_url, |
79 const content::ResourceContext& context); | 83 const content::ResourceContext& context); |
80 | 84 |
81 // Allow the embedder to control if the given cookie can be read. | 85 // Allow the embedder to control if the given cookie can be read. |
82 // This is called on the IO thread. | 86 // This is called on the IO thread. |
83 virtual bool AllowGetCookie(const GURL& url, | 87 virtual bool AllowGetCookie(const GURL& url, |
84 const GURL& first_party, | 88 const GURL& first_party, |
85 const net::CookieList& cookie_list, | 89 const net::CookieList& cookie_list, |
(...skipping 13 matching lines...) Expand all Loading... |
99 | 103 |
100 #if defined(OS_LINUX) | 104 #if defined(OS_LINUX) |
101 // Can return an optional fd for crash handling, otherwise returns -1. | 105 // Can return an optional fd for crash handling, otherwise returns -1. |
102 virtual int GetCrashSignalFD(const std::string& process_type); | 106 virtual int GetCrashSignalFD(const std::string& process_type); |
103 #endif | 107 #endif |
104 }; | 108 }; |
105 | 109 |
106 } // namespace content | 110 } // namespace content |
107 | 111 |
108 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 112 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |