| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 virtual void ClearCookies(RenderViewHost* rvh) = 0; | 337 virtual void ClearCookies(RenderViewHost* rvh) = 0; |
| 338 | 338 |
| 339 // Returns the default download directory. | 339 // Returns the default download directory. |
| 340 // This can be called on any thread. | 340 // This can be called on any thread. |
| 341 virtual FilePath GetDefaultDownloadDirectory() = 0; | 341 virtual FilePath GetDefaultDownloadDirectory() = 0; |
| 342 | 342 |
| 343 // Returns the default filename used in downloads when we have no idea what | 343 // Returns the default filename used in downloads when we have no idea what |
| 344 // else we should do with the file. | 344 // else we should do with the file. |
| 345 virtual std::string GetDefaultDownloadName() = 0; | 345 virtual std::string GetDefaultDownloadName() = 0; |
| 346 | 346 |
| 347 // Returns true if given origin can use TCP/UDP sockets. |
| 348 virtual bool AllowSocketAPI(const GURL& url) = 0; |
| 349 |
| 347 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 350 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 348 // Can return an optional fd for crash handling, otherwise returns -1. The | 351 // Can return an optional fd for crash handling, otherwise returns -1. The |
| 349 // passed |command_line| will be used to start the process in question. | 352 // passed |command_line| will be used to start the process in question. |
| 350 virtual int GetCrashSignalFD(const CommandLine& command_line) = 0; | 353 virtual int GetCrashSignalFD(const CommandLine& command_line) = 0; |
| 351 #endif | 354 #endif |
| 352 | 355 |
| 353 #if defined(OS_WIN) | 356 #if defined(OS_WIN) |
| 354 // Returns the name of the dll that contains cursors and other resources. | 357 // Returns the name of the dll that contains cursors and other resources. |
| 355 virtual const wchar_t* GetResourceDllName() = 0; | 358 virtual const wchar_t* GetResourceDllName() = 0; |
| 356 #endif | 359 #endif |
| 357 | 360 |
| 358 #if defined(USE_NSS) | 361 #if defined(USE_NSS) |
| 359 // Return a delegate to authenticate and unlock |module|. | 362 // Return a delegate to authenticate and unlock |module|. |
| 360 // This is called on a worker thread. | 363 // This is called on a worker thread. |
| 361 virtual | 364 virtual |
| 362 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 365 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 363 const GURL& url) = 0; | 366 const GURL& url) = 0; |
| 364 #endif | 367 #endif |
| 365 }; | 368 }; |
| 366 | 369 |
| 367 } // namespace content | 370 } // namespace content |
| 368 | 371 |
| 369 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 372 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |