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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 const GURL& url, | 486 const GURL& url, |
487 const SocketPermissionRequest& params); | 487 const SocketPermissionRequest& params); |
488 | 488 |
489 // Returns the directory containing hyphenation dictionaries. | 489 // Returns the directory containing hyphenation dictionaries. |
490 virtual base::FilePath GetHyphenDictionaryDirectory(); | 490 virtual base::FilePath GetHyphenDictionaryDirectory(); |
491 | 491 |
492 // Returns an implementation of a file selecition policy. Can return NULL. | 492 // Returns an implementation of a file selecition policy. Can return NULL. |
493 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 493 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
494 WebContents* web_contents); | 494 WebContents* web_contents); |
495 | 495 |
| 496 // Returns additional allowed scheme set which can access files in |
| 497 // FileSystem API. |
| 498 virtual void GetAdditionalAllowedSchemesForFileSystem( |
| 499 std::vector<std::string>* additional_schemes); |
| 500 |
496 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 501 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
497 // Populates |mappings| with all files that need to be mapped before launching | 502 // Populates |mappings| with all files that need to be mapped before launching |
498 // a child process. | 503 // a child process. |
499 virtual void GetAdditionalMappedFilesForChildProcess( | 504 virtual void GetAdditionalMappedFilesForChildProcess( |
500 const CommandLine& command_line, | 505 const CommandLine& command_line, |
501 int child_process_id, | 506 int child_process_id, |
502 std::vector<FileDescriptorInfo>* mappings) {} | 507 std::vector<FileDescriptorInfo>* mappings) {} |
503 #endif | 508 #endif |
504 | 509 |
505 #if defined(OS_WIN) | 510 #if defined(OS_WIN) |
(...skipping 12 matching lines...) Expand all Loading... |
518 // This is called on a worker thread. | 523 // This is called on a worker thread. |
519 virtual | 524 virtual |
520 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 525 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
521 const GURL& url); | 526 const GURL& url); |
522 #endif | 527 #endif |
523 }; | 528 }; |
524 | 529 |
525 } // namespace content | 530 } // namespace content |
526 | 531 |
527 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 532 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |