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 <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 virtual void ClearCookies(RenderViewHost* rvh) {} | 429 virtual void ClearCookies(RenderViewHost* rvh) {} |
430 | 430 |
431 // Returns the default download directory. | 431 // Returns the default download directory. |
432 // This can be called on any thread. | 432 // This can be called on any thread. |
433 virtual FilePath GetDefaultDownloadDirectory(); | 433 virtual FilePath GetDefaultDownloadDirectory(); |
434 | 434 |
435 // Returns the default filename used in downloads when we have no idea what | 435 // Returns the default filename used in downloads when we have no idea what |
436 // else we should do with the file. | 436 // else we should do with the file. |
437 virtual std::string GetDefaultDownloadName(); | 437 virtual std::string GetDefaultDownloadName(); |
438 | 438 |
439 // Notifification that a pepper plugin has just been spawned. This allows the | 439 // Notification that a pepper plugin has just been spawned. This allows the |
440 // embedder to add filters onto the host to implement interfaces. | 440 // embedder to add filters onto the host to implement interfaces. |
441 // This is called on the IO thread. | 441 // This is called on the IO thread. |
442 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} | 442 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} |
443 | 443 |
| 444 // Gets the host for an external out-of-process plugin. |
| 445 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( |
| 446 int plugin_child_id); |
| 447 |
444 // Returns true if renderer processes can use Pepper TCP/UDP sockets from | 448 // Returns true if renderer processes can use Pepper TCP/UDP sockets from |
445 // the given origin and connection type. | 449 // the given origin and connection type. |
446 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 450 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
447 const GURL& url, | 451 const GURL& url, |
448 const SocketPermissionRequest& params); | 452 const SocketPermissionRequest& params); |
449 | 453 |
450 // Returns true if renderer processes can use private Pepper File APIs. | 454 // Returns true if renderer processes can use private Pepper File APIs. |
451 virtual bool AllowPepperPrivateFileAPI(); | 455 virtual bool AllowPepperPrivateFileAPI(); |
452 | 456 |
453 // Returns the directory containing hyphenation dictionaries. | 457 // Returns the directory containing hyphenation dictionaries. |
(...skipping 18 matching lines...) Expand all Loading... |
472 // This is called on a worker thread. | 476 // This is called on a worker thread. |
473 virtual | 477 virtual |
474 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 478 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
475 const GURL& url); | 479 const GURL& url); |
476 #endif | 480 #endif |
477 }; | 481 }; |
478 | 482 |
479 } // namespace content | 483 } // namespace content |
480 | 484 |
481 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 485 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |