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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 // Gets the host for an external out-of-process plugin. | 452 // Gets the host for an external out-of-process plugin. |
453 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( | 453 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( |
454 int plugin_child_id); | 454 int plugin_child_id); |
455 | 455 |
456 // Returns true if renderer processes can use Pepper TCP/UDP sockets from | 456 // Returns true if renderer processes can use Pepper TCP/UDP sockets from |
457 // the given origin and connection type. | 457 // the given origin and connection type. |
458 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 458 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
459 const GURL& url, | 459 const GURL& url, |
460 const SocketPermissionRequest& params); | 460 const SocketPermissionRequest& params); |
461 | 461 |
462 // Returns true if renderer processes can use private Pepper File APIs. | |
463 virtual bool AllowPepperPrivateFileAPI(); | |
464 | |
465 // Returns the directory containing hyphenation dictionaries. | 462 // Returns the directory containing hyphenation dictionaries. |
466 virtual FilePath GetHyphenDictionaryDirectory(); | 463 virtual FilePath GetHyphenDictionaryDirectory(); |
467 | 464 |
468 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 465 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
469 // Populates |mappings| with all files that need to be mapped before launching | 466 // Populates |mappings| with all files that need to be mapped before launching |
470 // a child process. | 467 // a child process. |
471 virtual void GetAdditionalMappedFilesForChildProcess( | 468 virtual void GetAdditionalMappedFilesForChildProcess( |
472 const CommandLine& command_line, | 469 const CommandLine& command_line, |
473 int child_process_id, | 470 int child_process_id, |
474 std::vector<FileDescriptorInfo>* mappings) {} | 471 std::vector<FileDescriptorInfo>* mappings) {} |
475 #endif | 472 #endif |
476 | 473 |
477 #if defined(OS_WIN) | 474 #if defined(OS_WIN) |
478 // Returns the name of the dll that contains cursors and other resources. | 475 // Returns the name of the dll that contains cursors and other resources. |
479 virtual const wchar_t* GetResourceDllName(); | 476 virtual const wchar_t* GetResourceDllName(); |
480 #endif | 477 #endif |
481 | 478 |
482 #if defined(USE_NSS) | 479 #if defined(USE_NSS) |
483 // Return a delegate to authenticate and unlock |module|. | 480 // Return a delegate to authenticate and unlock |module|. |
484 // This is called on a worker thread. | 481 // This is called on a worker thread. |
485 virtual | 482 virtual |
486 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 483 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
487 const GURL& url); | 484 const GURL& url); |
488 #endif | 485 #endif |
489 }; | 486 }; |
490 | 487 |
491 } // namespace content | 488 } // namespace content |
492 | 489 |
493 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 490 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |