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