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