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