Chromium Code Reviews| 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 | |
| 448 // Notification that an instance has just been created for an external out of | |
| 449 // process pepper plugin (e.g. a NaCl plugin). Called on the IO thread. | |
| 450 virtual void DidCreatePpapiInstance(int plugin_child_id, | |
|
brettw
2012/11/07 00:18:11
I'm not sure these are used? Are they from a previ
bbudge
2012/11/07 00:51:46
Yep. Thanks.
| |
| 451 int32 pp_instance, | |
| 452 int render_process_id, | |
| 453 int render_view_id) {} | |
| 454 // Notification that an instance has just been deleted for an external out of | |
| 455 // process pepper plugin (e.g. a NaCl plugin). Called on the IO thread. | |
| 456 virtual void DidDeletePpapiInstance(int plugin_child_id, | |
| 457 int32 pp_instance) {} | |
| 458 | |
| 444 // Returns true if renderer processes can use Pepper TCP/UDP sockets from | 459 // Returns true if renderer processes can use Pepper TCP/UDP sockets from |
| 445 // the given origin and connection type. | 460 // the given origin and connection type. |
| 446 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 461 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
| 447 const GURL& url, | 462 const GURL& url, |
| 448 const SocketPermissionRequest& params); | 463 const SocketPermissionRequest& params); |
| 449 | 464 |
| 450 // Returns true if renderer processes can use private Pepper File APIs. | 465 // Returns true if renderer processes can use private Pepper File APIs. |
| 451 virtual bool AllowPepperPrivateFileAPI(); | 466 virtual bool AllowPepperPrivateFileAPI(); |
| 452 | 467 |
| 453 // Returns the directory containing hyphenation dictionaries. | 468 // Returns the directory containing hyphenation dictionaries. |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 472 // This is called on a worker thread. | 487 // This is called on a worker thread. |
| 473 virtual | 488 virtual |
| 474 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 489 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 475 const GURL& url); | 490 const GURL& url); |
| 476 #endif | 491 #endif |
| 477 }; | 492 }; |
| 478 | 493 |
| 479 } // namespace content | 494 } // namespace content |
| 480 | 495 |
| 481 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 496 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |