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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 293 |
294 // Returns the locale used by the application. | 294 // Returns the locale used by the application. |
295 // This is called on the UI and IO threads. | 295 // This is called on the UI and IO threads. |
296 virtual std::string GetApplicationLocale(); | 296 virtual std::string GetApplicationLocale(); |
297 | 297 |
298 // Returns the languages used in the Accept-Languages HTTP header. | 298 // Returns the languages used in the Accept-Languages HTTP header. |
299 // (Not called GetAcceptLanguages so it doesn't clash with win32). | 299 // (Not called GetAcceptLanguages so it doesn't clash with win32). |
300 virtual std::string GetAcceptLangs(BrowserContext* context); | 300 virtual std::string GetAcceptLangs(BrowserContext* context); |
301 | 301 |
302 // Returns the default favicon. The callee doesn't own the given bitmap. | 302 // Returns the default favicon. The callee doesn't own the given bitmap. |
303 virtual gfx::ImageSkia* GetDefaultFavicon(); | 303 virtual const gfx::ImageSkia* GetDefaultFavicon(); |
304 | 304 |
305 // Allow the embedder to control if an AppCache can be used for the given url. | 305 // Allow the embedder to control if an AppCache can be used for the given url. |
306 // This is called on the IO thread. | 306 // This is called on the IO thread. |
307 virtual bool AllowAppCache(const GURL& manifest_url, | 307 virtual bool AllowAppCache(const GURL& manifest_url, |
308 const GURL& first_party, | 308 const GURL& first_party, |
309 ResourceContext* context); | 309 ResourceContext* context); |
310 | 310 |
311 // Allow the embedder to control if the given cookie can be read. | 311 // Allow the embedder to control if the given cookie can be read. |
312 // This is called on the IO thread. | 312 // This is called on the IO thread. |
313 virtual bool AllowGetCookie(const GURL& url, | 313 virtual bool AllowGetCookie(const GURL& url, |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 640 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
641 // implementation. Return NULL to disable external surface video. | 641 // implementation. Return NULL to disable external surface video. |
642 virtual ExternalVideoSurfaceContainer* | 642 virtual ExternalVideoSurfaceContainer* |
643 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 643 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
644 #endif | 644 #endif |
645 }; | 645 }; |
646 | 646 |
647 } // namespace content | 647 } // namespace content |
648 | 648 |
649 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 649 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |