summaryrefslogtreecommitdiffstats
path: root/content/plugin
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 22:24:43 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 22:24:43 +0000
commit490f79c179cc9df090dc68e36949ecc3458793da (patch)
tree1792cef02967fb6f8abe77e05d1f8ad015603ffb /content/plugin
parent3ffd3aec671a91b110860fc7c956f4d11a5be680 (diff)
downloadchromium_src-490f79c179cc9df090dc68e36949ecc3458793da.zip
chromium_src-490f79c179cc9df090dc68e36949ecc3458793da.tar.gz
chromium_src-490f79c179cc9df090dc68e36949ecc3458793da.tar.bz2
Add separate ContentClient interfaces for gpu/plugin/renderer processes. Since we don't have a need for a chrome/gpu or chrome/plugin directory, their chrome implementations are in chrome/common. Use the renderer one for getting the sad plugin image.
Review URL: http://codereview.chromium.org/6708013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78617 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/plugin')
-rw-r--r--content/plugin/content_plugin_client.h23
-rw-r--r--content/plugin/plugin_thread.cc4
2 files changed, 25 insertions, 2 deletions
diff --git a/content/plugin/content_plugin_client.h b/content/plugin/content_plugin_client.h
new file mode 100644
index 0000000..a8f3974
--- /dev/null
+++ b/content/plugin/content_plugin_client.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PLUGIN_CONTENT_PLUGIN_CLIENT_H_
+#define CONTENT_PLUGIN_CONTENT_PLUGIN_CLIENT_H_
+#pragma once
+
+#include "base/string16.h"
+#include "content/common/content_client.h"
+
+namespace content {
+
+// Embedder API for participating in plugin logic.
+class ContentPluginClient {
+ public:
+ // Notifies that a plugin process has started.
+ virtual void PluginProcessStarted(const string16& plugin_name) {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PLUGIN_CONTENT_PLUGIN_CLIENT_H_
diff --git a/content/plugin/plugin_thread.cc b/content/plugin/plugin_thread.cc
index c2ca935..1d14c22 100644
--- a/content/plugin/plugin_thread.cc
+++ b/content/plugin/plugin_thread.cc
@@ -20,10 +20,10 @@
#include "base/process_util.h"
#include "base/threading/thread_local.h"
#include "content/common/child_process.h"
-#include "content/common/content_client.h"
#include "content/common/content_switches.h"
#include "content/common/child_process_messages.h"
#include "content/common/plugin_messages.h"
+#include "content/plugin/content_plugin_client.h"
#include "content/plugin/npobject_util.h"
#include "ipc/ipc_channel_handle.h"
#include "net/base/net_errors.h"
@@ -81,7 +81,7 @@ PluginThread::PluginThread()
if (plugin.get())
plugin->NP_Initialize();
- content::GetContentClient()->PluginProcessStarted(
+ content::GetContentClient()->plugin()->PluginProcessStarted(
plugin.get() ? plugin->plugin_info().name : string16());
// Certain plugins, such as flash, steal the unhandled exception filter