Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 11368019: Add support for external out-of-process PPAPI plugins in the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 virtual void ClearCookies(RenderViewHost* rvh) {} 428 virtual void ClearCookies(RenderViewHost* rvh) {}
429 429
430 // Returns the default download directory. 430 // Returns the default download directory.
431 // This can be called on any thread. 431 // This can be called on any thread.
432 virtual FilePath GetDefaultDownloadDirectory(); 432 virtual FilePath GetDefaultDownloadDirectory();
433 433
434 // Returns the default filename used in downloads when we have no idea what 434 // Returns the default filename used in downloads when we have no idea what
435 // else we should do with the file. 435 // else we should do with the file.
436 virtual std::string GetDefaultDownloadName(); 436 virtual std::string GetDefaultDownloadName();
437 437
438 // Notifification that a pepper plugin has just been spawned. This allows the 438 // Notification that a pepper plugin has just been spawned. This allows the
439 // embedder to add filters onto the host to implement interfaces. 439 // embedder to add filters onto the host to implement interfaces.
440 // This is called on the IO thread. 440 // This is called on the IO thread.
441 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {} 441 virtual void DidCreatePpapiPlugin(BrowserPpapiHost* browser_host) {}
442 442
443 // Gets the host for an external out-of-process plugin.
444 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost(
445 int plugin_child_id);
446
447 // Notification that an instance has just been created for an external out of
448 // process pepper plugin (e.g. a NaCl plugin). Called on the IO thread.
449 virtual void DidCreatePpapiInstance(int plugin_child_id,
450 int32 pp_instance,
451 int render_process_id,
452 int render_view_id) {}
453 // Notification that an instance has just been deleted for an external out of
454 // process pepper plugin (e.g. a NaCl plugin). Called on the IO thread.
455 virtual void DidDeletePpapiInstance(int plugin_child_id,
456 int32 pp_instance) {}
457
443 // Returns true if renderer processes can use Pepper TCP/UDP sockets from 458 // Returns true if renderer processes can use Pepper TCP/UDP sockets from
444 // the given origin. 459 // the given origin.
445 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, 460 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context,
446 const GURL& url); 461 const GURL& url);
447 462
448 // Returns true if renderer processes can use private Pepper File APIs. 463 // Returns true if renderer processes can use private Pepper File APIs.
449 virtual bool AllowPepperPrivateFileAPI(); 464 virtual bool AllowPepperPrivateFileAPI();
450 465
451 // Returns the directory containing hyphenation dictionaries. 466 // Returns the directory containing hyphenation dictionaries.
452 virtual FilePath GetHyphenDictionaryDirectory(); 467 virtual FilePath GetHyphenDictionaryDirectory();
(...skipping 17 matching lines...) Expand all
470 // This is called on a worker thread. 485 // This is called on a worker thread.
471 virtual 486 virtual
472 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 487 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
473 const GURL& url); 488 const GURL& url);
474 #endif 489 #endif
475 }; 490 };
476 491
477 } // namespace content 492 } // namespace content
478 493
479 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 494 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698