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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // Allows the embedder to pass extra command line flags. | 160 // Allows the embedder to pass extra command line flags. |
161 // switches::kProcessType will already be set at this point. | 161 // switches::kProcessType will already be set at this point. |
162 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 162 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
163 int child_process_id) = 0; | 163 int child_process_id) = 0; |
164 | 164 |
165 // Returns the locale used by the application. | 165 // Returns the locale used by the application. |
166 virtual std::string GetApplicationLocale() = 0; | 166 virtual std::string GetApplicationLocale() = 0; |
167 | 167 |
168 // Returns the languages used in the Accept-Languages HTTP header. | 168 // Returns the languages used in the Accept-Languages HTTP header. |
169 // (Not called GetAcceptLanguages so it doesn't clash with win32). | 169 // (Not called GetAcceptLanguages so it doesn't clash with win32). |
170 virtual std::string GetAcceptLangs(const TabContents* tab) = 0; | 170 virtual std::string GetAcceptLangs( |
| 171 content::BrowserContext* context) = 0; |
171 | 172 |
172 // Returns the default favicon. The callee doesn't own the given bitmap. | 173 // Returns the default favicon. The callee doesn't own the given bitmap. |
173 virtual SkBitmap* GetDefaultFavicon() = 0; | 174 virtual SkBitmap* GetDefaultFavicon() = 0; |
174 | 175 |
175 // Allow the embedder to control if an AppCache can be used for the given url. | 176 // Allow the embedder to control if an AppCache can be used for the given url. |
176 // This is called on the IO thread. | 177 // This is called on the IO thread. |
177 virtual bool AllowAppCache(const GURL& manifest_url, | 178 virtual bool AllowAppCache(const GURL& manifest_url, |
178 const GURL& first_party, | 179 const GURL& first_party, |
179 const content::ResourceContext& context) = 0; | 180 const content::ResourceContext& context) = 0; |
180 | 181 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 // This is called on a worker thread. | 364 // This is called on a worker thread. |
364 virtual | 365 virtual |
365 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 366 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
366 const GURL& url) = 0; | 367 const GURL& url) = 0; |
367 #endif | 368 #endif |
368 }; | 369 }; |
369 | 370 |
370 } // namespace content | 371 } // namespace content |
371 | 372 |
372 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 373 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |