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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 virtual void ClearCache(RenderViewHost* rvh) = 0; | 295 virtual void ClearCache(RenderViewHost* rvh) = 0; |
296 | 296 |
297 // Clears browser cookies. | 297 // Clears browser cookies. |
298 virtual void ClearCookies(RenderViewHost* rvh) = 0; | 298 virtual void ClearCookies(RenderViewHost* rvh) = 0; |
299 | 299 |
300 // Returns the default download directory. | 300 // Returns the default download directory. |
301 // This can be called on any thread. | 301 // This can be called on any thread. |
302 virtual FilePath GetDefaultDownloadDirectory() = 0; | 302 virtual FilePath GetDefaultDownloadDirectory() = 0; |
303 | 303 |
304 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 304 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
305 // Can return an optional fd for crash handling, otherwise returns -1. | 305 // Can return an optional fd for crash handling, otherwise returns -1. The |
306 virtual int GetCrashSignalFD(const std::string& process_type) = 0; | 306 // passed |command_line| will be used to start the process in question. |
| 307 virtual int GetCrashSignalFD(const CommandLine& command_line) = 0; |
307 #endif | 308 #endif |
308 | 309 |
309 #if defined(OS_WIN) | 310 #if defined(OS_WIN) |
310 // Returns the name of the dll that contains cursors and other resources. | 311 // Returns the name of the dll that contains cursors and other resources. |
311 virtual const wchar_t* GetResourceDllName() = 0; | 312 virtual const wchar_t* GetResourceDllName() = 0; |
312 #endif | 313 #endif |
313 | 314 |
314 #if defined(USE_NSS) | 315 #if defined(USE_NSS) |
315 // Return a delegate to authenticate and unlock |module|. | 316 // Return a delegate to authenticate and unlock |module|. |
316 // This is called on a worker thread. | 317 // This is called on a worker thread. |
317 virtual | 318 virtual |
318 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 319 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
319 const GURL& url) = 0; | 320 const GURL& url) = 0; |
320 #endif | 321 #endif |
321 }; | 322 }; |
322 | 323 |
323 } // namespace content | 324 } // namespace content |
324 | 325 |
325 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 326 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |