| 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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 551 |
| 552 // Returns true if the socket operation specified by |params| is allowed | 552 // Returns true if the socket operation specified by |params| is allowed |
| 553 // from the given |browser_context| and |url|. |private_api| indicates whether | 553 // from the given |browser_context| and |url|. |private_api| indicates whether |
| 554 // this permission check is for the private Pepper socket API or the public | 554 // this permission check is for the private Pepper socket API or the public |
| 555 // one. | 555 // one. |
| 556 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 556 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
| 557 const GURL& url, | 557 const GURL& url, |
| 558 bool private_api, | 558 bool private_api, |
| 559 const SocketPermissionRequest& params); | 559 const SocketPermissionRequest& params); |
| 560 | 560 |
| 561 // Returns the directory containing hyphenation dictionaries. | |
| 562 virtual base::FilePath GetHyphenDictionaryDirectory(); | |
| 563 | |
| 564 // Returns an implementation of a file selecition policy. Can return NULL. | 561 // Returns an implementation of a file selecition policy. Can return NULL. |
| 565 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 562 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
| 566 WebContents* web_contents); | 563 WebContents* web_contents); |
| 567 | 564 |
| 568 // Returns additional allowed scheme set which can access files in | 565 // Returns additional allowed scheme set which can access files in |
| 569 // FileSystem API. | 566 // FileSystem API. |
| 570 virtual void GetAdditionalAllowedSchemesForFileSystem( | 567 virtual void GetAdditionalAllowedSchemesForFileSystem( |
| 571 std::vector<std::string>* additional_schemes) {} | 568 std::vector<std::string>* additional_schemes) {} |
| 572 | 569 |
| 573 // Returns additional file system backends for FileSystem API. | 570 // Returns additional file system backends for FileSystem API. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 // This is called on a worker thread. | 605 // This is called on a worker thread. |
| 609 virtual | 606 virtual |
| 610 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 607 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 611 const GURL& url); | 608 const GURL& url); |
| 612 #endif | 609 #endif |
| 613 }; | 610 }; |
| 614 | 611 |
| 615 } // namespace content | 612 } // namespace content |
| 616 | 613 |
| 617 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 614 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |