| 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_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // Returns the languages used in the Accept-Languages HTTP header. | 116 // Returns the languages used in the Accept-Languages HTTP header. |
| 117 // (Not called GetAcceptLanguages so it doesn't clash with win32). | 117 // (Not called GetAcceptLanguages so it doesn't clash with win32). |
| 118 virtual std::string GetAcceptLangs(const TabContents* tab) = 0; | 118 virtual std::string GetAcceptLangs(const TabContents* tab) = 0; |
| 119 | 119 |
| 120 // Returns the default favicon. The callee doesn't own the given bitmap. | 120 // Returns the default favicon. The callee doesn't own the given bitmap. |
| 121 virtual SkBitmap* GetDefaultFavicon() = 0; | 121 virtual SkBitmap* GetDefaultFavicon() = 0; |
| 122 | 122 |
| 123 // Allow the embedder to control if an AppCache can be used for the given url. | 123 // Allow the embedder to control if an AppCache can be used for the given url. |
| 124 // This is called on the IO thread. | 124 // This is called on the IO thread. |
| 125 virtual bool AllowAppCache(const GURL& manifest_url, | 125 virtual bool AllowAppCache(const GURL& manifest_url, |
| 126 const GURL& first_party, |
| 126 const content::ResourceContext& context) = 0; | 127 const content::ResourceContext& context) = 0; |
| 127 | 128 |
| 128 // Allow the embedder to control if the given cookie can be read. | 129 // Allow the embedder to control if the given cookie can be read. |
| 129 // This is called on the IO thread. | 130 // This is called on the IO thread. |
| 130 virtual bool AllowGetCookie(const GURL& url, | 131 virtual bool AllowGetCookie(const GURL& url, |
| 131 const GURL& first_party, | 132 const GURL& first_party, |
| 132 const net::CookieList& cookie_list, | 133 const net::CookieList& cookie_list, |
| 133 const content::ResourceContext& context, | 134 const content::ResourceContext& context, |
| 134 int render_process_id, | 135 int render_process_id, |
| 135 int render_view_id) = 0; | 136 int render_view_id) = 0; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // This is called on a worker thread. | 280 // This is called on a worker thread. |
| 280 virtual | 281 virtual |
| 281 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 282 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 282 const GURL& url) = 0; | 283 const GURL& url) = 0; |
| 283 #endif | 284 #endif |
| 284 }; | 285 }; |
| 285 | 286 |
| 286 } // namespace content | 287 } // namespace content |
| 287 | 288 |
| 288 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 289 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |