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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Returns the languages used in the Accept-Languages HTTP header. | 139 // Returns the languages used in the Accept-Languages HTTP header. |
140 // (Not called GetAcceptLanguages so it doesn't clash with win32). | 140 // (Not called GetAcceptLanguages so it doesn't clash with win32). |
141 virtual std::string GetAcceptLangs(const TabContents* tab) = 0; | 141 virtual std::string GetAcceptLangs(const TabContents* tab) = 0; |
142 | 142 |
143 // Returns the default favicon. The callee doesn't own the given bitmap. | 143 // Returns the default favicon. The callee doesn't own the given bitmap. |
144 virtual SkBitmap* GetDefaultFavicon() = 0; | 144 virtual SkBitmap* GetDefaultFavicon() = 0; |
145 | 145 |
146 // Allow the embedder to control if an AppCache can be used for the given url. | 146 // Allow the embedder to control if an AppCache can be used for the given url. |
147 // This is called on the IO thread. | 147 // This is called on the IO thread. |
148 virtual bool AllowAppCache(const GURL& manifest_url, | 148 virtual bool AllowAppCache(const GURL& manifest_url, |
| 149 const GURL& first_party, |
149 const content::ResourceContext& context) = 0; | 150 const content::ResourceContext& context) = 0; |
150 | 151 |
151 // Allow the embedder to control if the given cookie can be read. | 152 // Allow the embedder to control if the given cookie can be read. |
152 // This is called on the IO thread. | 153 // This is called on the IO thread. |
153 virtual bool AllowGetCookie(const GURL& url, | 154 virtual bool AllowGetCookie(const GURL& url, |
154 const GURL& first_party, | 155 const GURL& first_party, |
155 const net::CookieList& cookie_list, | 156 const net::CookieList& cookie_list, |
156 const content::ResourceContext& context, | 157 const content::ResourceContext& context, |
157 int render_process_id, | 158 int render_process_id, |
158 int render_view_id) = 0; | 159 int render_view_id) = 0; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 // This is called on a worker thread. | 319 // This is called on a worker thread. |
319 virtual | 320 virtual |
320 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 321 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
321 const GURL& url) = 0; | 322 const GURL& url) = 0; |
322 #endif | 323 #endif |
323 }; | 324 }; |
324 | 325 |
325 } // namespace content | 326 } // namespace content |
326 | 327 |
327 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 328 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |