| 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 24 matching lines...) Expand all Loading... |
| 35 namespace crypto { | 35 namespace crypto { |
| 36 class CryptoModuleBlockingPasswordDelegate; | 36 class CryptoModuleBlockingPasswordDelegate; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace net { | 39 namespace net { |
| 40 class CookieList; | 40 class CookieList; |
| 41 class CookieOptions; | 41 class CookieOptions; |
| 42 class NetLog; | 42 class NetLog; |
| 43 class URLRequest; | 43 class URLRequest; |
| 44 class URLRequestContext; | 44 class URLRequestContext; |
| 45 class URLRequestContextGetter; |
| 45 class X509Certificate; | 46 class X509Certificate; |
| 46 } | 47 } |
| 47 | 48 |
| 48 namespace ui { | 49 namespace ui { |
| 49 class Clipboard; | 50 class Clipboard; |
| 50 } | 51 } |
| 51 | 52 |
| 52 namespace content { | 53 namespace content { |
| 53 | 54 |
| 54 class BrowserContext; | 55 class BrowserContext; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // Clears browser cache. | 263 // Clears browser cache. |
| 263 virtual void ClearCache(RenderViewHost* rvh) = 0; | 264 virtual void ClearCache(RenderViewHost* rvh) = 0; |
| 264 | 265 |
| 265 // Clears browser cookies. | 266 // Clears browser cookies. |
| 266 virtual void ClearCookies(RenderViewHost* rvh) = 0; | 267 virtual void ClearCookies(RenderViewHost* rvh) = 0; |
| 267 | 268 |
| 268 // Returns the default download directory. | 269 // Returns the default download directory. |
| 269 // This can be called on any thread. | 270 // This can be called on any thread. |
| 270 virtual FilePath GetDefaultDownloadDirectory() = 0; | 271 virtual FilePath GetDefaultDownloadDirectory() = 0; |
| 271 | 272 |
| 273 // Returns the "default" request context. There is no such thing in the world |
| 274 // of multiple profiles, and all calls to this need to be removed. |
| 275 virtual net::URLRequestContextGetter* |
| 276 GetDefaultRequestContextDeprecatedCrBug64339() = 0; |
| 277 |
| 272 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 278 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 273 // Can return an optional fd for crash handling, otherwise returns -1. | 279 // Can return an optional fd for crash handling, otherwise returns -1. |
| 274 virtual int GetCrashSignalFD(const std::string& process_type) = 0; | 280 virtual int GetCrashSignalFD(const std::string& process_type) = 0; |
| 275 #endif | 281 #endif |
| 276 | 282 |
| 277 #if defined(USE_NSS) | 283 #if defined(USE_NSS) |
| 278 // Return a delegate to authenticate and unlock |module|. | 284 // Return a delegate to authenticate and unlock |module|. |
| 279 // This is called on a worker thread. | 285 // This is called on a worker thread. |
| 280 virtual | 286 virtual |
| 281 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 287 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 282 const GURL& url) = 0; | 288 const GURL& url) = 0; |
| 283 #endif | 289 #endif |
| 284 }; | 290 }; |
| 285 | 291 |
| 286 } // namespace content | 292 } // namespace content |
| 287 | 293 |
| 288 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 294 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |