| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 // See CharacterEncoding's comment. | 268 // See CharacterEncoding's comment. |
| 269 virtual std::string GetCanonicalEncodingNameByAliasName( | 269 virtual std::string GetCanonicalEncodingNameByAliasName( |
| 270 const std::string& alias_name); | 270 const std::string& alias_name); |
| 271 | 271 |
| 272 // Allows the embedder to pass extra command line flags. | 272 // Allows the embedder to pass extra command line flags. |
| 273 // switches::kProcessType will already be set at this point. | 273 // switches::kProcessType will already be set at this point. |
| 274 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 274 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
| 275 int child_process_id) {} | 275 int child_process_id) {} |
| 276 | 276 |
| 277 // This is called on the process launching thread, when files that should be | |
| 278 // passed to the client have been opened. It allows command line switches to | |
| 279 // be added to tell the client where to find its files. | |
| 280 virtual void AppendMappedFileCommandLineSwitches( | |
| 281 base::CommandLine* command_line) {} | |
| 282 | |
| 283 // Returns the locale used by the application. | 277 // Returns the locale used by the application. |
| 284 // This is called on the UI and IO threads. | 278 // This is called on the UI and IO threads. |
| 285 virtual std::string GetApplicationLocale(); | 279 virtual std::string GetApplicationLocale(); |
| 286 | 280 |
| 287 // Returns the languages used in the Accept-Languages HTTP header. | 281 // Returns the languages used in the Accept-Languages HTTP header. |
| 288 // (Not called GetAcceptLanguages so it doesn't clash with win32). | 282 // (Not called GetAcceptLanguages so it doesn't clash with win32). |
| 289 virtual std::string GetAcceptLangs(BrowserContext* context); | 283 virtual std::string GetAcceptLangs(BrowserContext* context); |
| 290 | 284 |
| 291 // Returns the default favicon. The callee doesn't own the given bitmap. | 285 // Returns the default favicon. The callee doesn't own the given bitmap. |
| 292 virtual const gfx::ImageSkia* GetDefaultFavicon(); | 286 virtual const gfx::ImageSkia* GetDefaultFavicon(); |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 640 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 647 // implementation. Return nullptr to disable external surface video. | 641 // implementation. Return nullptr to disable external surface video. |
| 648 virtual ExternalVideoSurfaceContainer* | 642 virtual ExternalVideoSurfaceContainer* |
| 649 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 643 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 650 #endif | 644 #endif |
| 651 }; | 645 }; |
| 652 | 646 |
| 653 } // namespace content | 647 } // namespace content |
| 654 | 648 |
| 655 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 649 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |