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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 | 471 |
472 // Notification that a pepper plugin has just been spawned. This allows the | 472 // Notification that a pepper plugin has just been spawned. This allows the |
473 // embedder to add filters onto the host to implement interfaces. | 473 // embedder to add filters onto the host to implement interfaces. |
474 // This is called on the IO thread. | 474 // This is called on the IO thread. |
475 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} | 475 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} |
476 | 476 |
477 // Gets the host for an external out-of-process plugin. | 477 // Gets the host for an external out-of-process plugin. |
478 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( | 478 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( |
479 int plugin_child_id); | 479 int plugin_child_id); |
480 | 480 |
| 481 // Returns true if the given browser_context and site_url support hosting |
| 482 // BrowserPlugins. |
| 483 virtual bool SupportsBrowserPlugin(BrowserContext* browser_context, |
| 484 const GURL& site_url); |
| 485 |
481 // Returns true if renderer processes can use Pepper TCP/UDP sockets from | 486 // Returns true if renderer processes can use Pepper TCP/UDP sockets from |
482 // the given origin and connection type. | 487 // the given origin and connection type. |
483 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 488 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
484 const GURL& url, | 489 const GURL& url, |
485 const SocketPermissionRequest& params); | 490 const SocketPermissionRequest& params); |
486 | 491 |
487 // Returns the directory containing hyphenation dictionaries. | 492 // Returns the directory containing hyphenation dictionaries. |
488 virtual base::FilePath GetHyphenDictionaryDirectory(); | 493 virtual base::FilePath GetHyphenDictionaryDirectory(); |
489 | 494 |
490 // Returns an implementation of a file selecition policy. Can return NULL. | 495 // Returns an implementation of a file selecition policy. Can return NULL. |
(...skipping 25 matching lines...) Expand all Loading... |
516 // This is called on a worker thread. | 521 // This is called on a worker thread. |
517 virtual | 522 virtual |
518 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 523 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
519 const GURL& url); | 524 const GURL& url); |
520 #endif | 525 #endif |
521 }; | 526 }; |
522 | 527 |
523 } // namespace content | 528 } // namespace content |
524 | 529 |
525 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 530 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |