| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ | 5 #ifndef COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ |
| 6 #define COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ | 6 #define COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ |
| 7 | 7 |
| 8 #include "components/plugins/renderer/webview_plugin.h" | 8 #include "components/plugins/renderer/webview_plugin.h" |
| 9 #include "content/public/common/webplugininfo.h" | 9 #include "content/public/common/webplugininfo.h" |
| 10 #include "content/public/renderer/context_menu_client.h" | 10 #include "content/public/renderer/context_menu_client.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void ReplacePlugin(blink::WebPlugin* new_plugin); | 61 void ReplacePlugin(blink::WebPlugin* new_plugin); |
| 62 | 62 |
| 63 // Hide this placeholder. | 63 // Hide this placeholder. |
| 64 void HidePlugin(); | 64 void HidePlugin(); |
| 65 | 65 |
| 66 // Load the blocked plugin. | 66 // Load the blocked plugin. |
| 67 void LoadPlugin(); | 67 void LoadPlugin(); |
| 68 | 68 |
| 69 // gin::Wrappable method: | 69 // gin::Wrappable method: |
| 70 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 70 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
| 71 v8::Isolate* isolate) OVERRIDE; | 71 v8::Isolate* isolate) override; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 // WebViewPlugin::Delegate methods: | 74 // WebViewPlugin::Delegate methods: |
| 75 virtual void ShowContextMenu(const blink::WebMouseEvent&) OVERRIDE; | 75 virtual void ShowContextMenu(const blink::WebMouseEvent&) override; |
| 76 virtual void PluginDestroyed() OVERRIDE; | 76 virtual void PluginDestroyed() override; |
| 77 | 77 |
| 78 // RenderFrameObserver methods: | 78 // RenderFrameObserver methods: |
| 79 virtual void OnDestruct() OVERRIDE; | 79 virtual void OnDestruct() override; |
| 80 | 80 |
| 81 // Javascript callbacks: | 81 // Javascript callbacks: |
| 82 | 82 |
| 83 // Load the blocked plugin by calling LoadPlugin(). | 83 // Load the blocked plugin by calling LoadPlugin(). |
| 84 void LoadCallback(); | 84 void LoadCallback(); |
| 85 | 85 |
| 86 // Hide the blocked plugin by calling HidePlugin(). | 86 // Hide the blocked plugin by calling HidePlugin(). |
| 87 void HideCallback(); | 87 void HideCallback(); |
| 88 | 88 |
| 89 void DidFinishLoadingCallback(); | 89 void DidFinishLoadingCallback(); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 106 bool hidden_; | 106 bool hidden_; |
| 107 bool finished_loading_; | 107 bool finished_loading_; |
| 108 std::string identifier_; | 108 std::string identifier_; |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholder); | 110 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholder); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace plugins | 113 } // namespace plugins |
| 114 | 114 |
| 115 #endif // COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ | 115 #endif // COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ |
| OLD | NEW |