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

Unified Diff: content/common/content_client.h

Issue 6869051: Move PepperPluginRegistry to content, while leaving the Chrome specific bits (NaCl, registration ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/zygote_main_linux.cc ('k') | content/common/pepper_plugin_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_client.h
===================================================================
--- content/common/content_client.h (revision 81952)
+++ content/common/content_client.h (working copy)
@@ -6,10 +6,13 @@
#define CONTENT_COMMON_CONTENT_CLIENT_H_
#pragma once
+#include <vector>
+
#include "base/basictypes.h"
class GURL;
struct GPUInfo;
+struct PepperPluginInfo;
namespace content {
@@ -36,13 +39,15 @@
ContentRendererClient* renderer() { return renderer_; }
void set_renderer(ContentRendererClient* r) { renderer_ = r; }
- // Sets the URL that is logged if the child process crashes. Use GURL() to
- // clear the URL.
+ // Sets the currently active URL. Use GURL() to clear the URL.
virtual void SetActiveURL(const GURL& url) {}
// Sets the data on the current gpu.
virtual void SetGpuInfo(const GPUInfo& gpu_info) {}
+ // Gives the embedder a chance to register its own pepper plugins.
+ virtual void AddPepperPlugins(std::vector<PepperPluginInfo>* plugins) {}
+
private:
// The embedder API for participating in browser logic.
ContentBrowserClient* browser_;
« no previous file with comments | « content/browser/zygote_main_linux.cc ('k') | content/common/pepper_plugin_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698