| 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 CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ | 5 #ifndef CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ |
| 6 #define CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ | 6 #define CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ |
| 7 | 7 |
| 8 #include "content/public/renderer/render_process_observer.h" | 8 #include "content/public/renderer/render_process_observer.h" |
| 9 #include "content/public/renderer/render_view_observer.h" | 9 #include "content/public/renderer/render_view_observer.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" |
| 11 #include "webkit/glue/cpp_bound_class.h" | 11 #include "webkit/glue/cpp_bound_class.h" |
| 12 #include "webkit/plugins/webplugininfo.h" | 12 #include "webkit/plugins/webplugininfo.h" |
| 13 #include "webkit/plugins/webview_plugin.h" | 13 #include "webkit/plugins/webview_plugin.h" |
| 14 | 14 |
| 15 struct ChromeViewHostMsg_GetPluginInfo_Status; | 15 struct ChromeViewHostMsg_GetPluginInfo_Status; |
| 16 | 16 |
| 17 namespace webkit { | 17 namespace webkit { |
| 18 namespace npapi { | |
| 19 class PluginGroup; | |
| 20 } | |
| 21 struct WebPluginInfo; | 18 struct WebPluginInfo; |
| 22 } | 19 } |
| 23 | 20 |
| 24 // Placeholders can be used if a plug-in is missing or not available | 21 // Placeholders can be used if a plug-in is missing or not available |
| 25 // (blocked or disabled). | 22 // (blocked or disabled). |
| 26 class PluginPlaceholder : public content::RenderViewObserver, | 23 class PluginPlaceholder : public content::RenderViewObserver, |
| 27 public content::RenderProcessObserver, | 24 public content::RenderProcessObserver, |
| 28 public webkit_glue::CppBoundClass, | 25 public webkit_glue::CppBoundClass, |
| 29 public webkit::WebViewPlugin::Delegate { | 26 public webkit::WebViewPlugin::Delegate { |
| 30 public: | 27 public: |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 bool hidden_; | 178 bool hidden_; |
| 182 bool has_host_; | 179 bool has_host_; |
| 183 bool finished_loading_; | 180 bool finished_loading_; |
| 184 string16 plugin_name_; | 181 string16 plugin_name_; |
| 185 std::string identifier_; | 182 std::string identifier_; |
| 186 | 183 |
| 187 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholder); | 184 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholder); |
| 188 }; | 185 }; |
| 189 | 186 |
| 190 #endif // CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ | 187 #endif // CHROME_RENDERER_PLUGINS_PLUGIN_PLACEHOLDER_H_ |
| OLD | NEW |