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