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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 | 502 |
503 // Gets the host for an external out-of-process plugin. | 503 // Gets the host for an external out-of-process plugin. |
504 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( | 504 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( |
505 int plugin_child_id); | 505 int plugin_child_id); |
506 | 506 |
507 // Returns true if the given browser_context and site_url support hosting | 507 // Returns true if the given browser_context and site_url support hosting |
508 // BrowserPlugins. | 508 // BrowserPlugins. |
509 virtual bool SupportsBrowserPlugin(BrowserContext* browser_context, | 509 virtual bool SupportsBrowserPlugin(BrowserContext* browser_context, |
510 const GURL& site_url); | 510 const GURL& site_url); |
511 | 511 |
512 // Returns true if renderer processes can use Pepper TCP/UDP sockets from | 512 // Returns true if the socket operation specified by |params| is allowed |
513 // the given origin and connection type. | 513 // from the given |browser_context| and |url|. |private_api| indicates whether |
| 514 // this permission check is for the private Pepper socket API or the public |
| 515 // one. |
514 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 516 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
515 const GURL& url, | 517 const GURL& url, |
| 518 bool private_api, |
516 const SocketPermissionRequest& params); | 519 const SocketPermissionRequest& params); |
517 | 520 |
518 // Returns the directory containing hyphenation dictionaries. | 521 // Returns the directory containing hyphenation dictionaries. |
519 virtual base::FilePath GetHyphenDictionaryDirectory(); | 522 virtual base::FilePath GetHyphenDictionaryDirectory(); |
520 | 523 |
521 // Returns an implementation of a file selecition policy. Can return NULL. | 524 // Returns an implementation of a file selecition policy. Can return NULL. |
522 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 525 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
523 WebContents* web_contents); | 526 WebContents* web_contents); |
524 | 527 |
525 // Returns additional allowed scheme set which can access files in | 528 // Returns additional allowed scheme set which can access files in |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 // This is called on a worker thread. | 565 // This is called on a worker thread. |
563 virtual | 566 virtual |
564 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 567 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
565 const GURL& url); | 568 const GURL& url); |
566 #endif | 569 #endif |
567 }; | 570 }; |
568 | 571 |
569 } // namespace content | 572 } // namespace content |
570 | 573 |
571 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 574 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |