| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 // Returns true if renderer processes can use Pepper TCP/UDP sockets from | 443 // Returns true if renderer processes can use Pepper TCP/UDP sockets from |
| 444 // the given origin. | 444 // the given origin. |
| 445 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 445 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
| 446 const GURL& url); | 446 const GURL& url); |
| 447 | 447 |
| 448 // Returns true if renderer processes can use private Pepper File APIs. | 448 // Returns true if renderer processes can use private Pepper File APIs. |
| 449 virtual bool AllowPepperPrivateFileAPI(); | 449 virtual bool AllowPepperPrivateFileAPI(); |
| 450 | 450 |
| 451 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 451 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 452 // Populates |mappings| with all files that need to be mapped before launching | 452 // Populates |mappings| with all files that need to be mapped before launching |
| 453 // a child process. | 453 // a child process. Note that the caller takes ownership of the file |
| 454 // descriptors returned in mappings, meaning you should not close them after |
| 455 // that call and you must dup them if you need to use them after this method |
| 456 // is called. |
| 454 virtual void GetAdditionalMappedFilesForChildProcess( | 457 virtual void GetAdditionalMappedFilesForChildProcess( |
| 455 const CommandLine& command_line, | 458 const CommandLine& command_line, |
| 456 base::GlobalDescriptors::Mapping* mappings) {} | 459 base::GlobalDescriptors::Mapping* mappings) {} |
| 457 #endif | 460 #endif |
| 458 | 461 |
| 459 #if defined(OS_WIN) | 462 #if defined(OS_WIN) |
| 460 // Returns the name of the dll that contains cursors and other resources. | 463 // Returns the name of the dll that contains cursors and other resources. |
| 461 virtual const wchar_t* GetResourceDllName(); | 464 virtual const wchar_t* GetResourceDllName(); |
| 462 #endif | 465 #endif |
| 463 | 466 |
| 464 #if defined(USE_NSS) | 467 #if defined(USE_NSS) |
| 465 // Return a delegate to authenticate and unlock |module|. | 468 // Return a delegate to authenticate and unlock |module|. |
| 466 // This is called on a worker thread. | 469 // This is called on a worker thread. |
| 467 virtual | 470 virtual |
| 468 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 471 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 469 const GURL& url); | 472 const GURL& url); |
| 470 #endif | 473 #endif |
| 471 }; | 474 }; |
| 472 | 475 |
| 473 } // namespace content | 476 } // namespace content |
| 474 | 477 |
| 475 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 478 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |