| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LOADABLE_PLUGIN_PLACEHOLDER_H_ | 5 #ifndef COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
| 6 #define COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ | 6 #define COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "components/plugins/renderer/plugin_placeholder.h" | 9 #include "components/plugins/renderer/plugin_placeholder.h" |
| 10 #include "content/public/common/webplugininfo.h" | 10 #include "content/public/common/webplugininfo.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // WebViewPlugin::Delegate (via PluginPlaceholder) method | 76 // WebViewPlugin::Delegate (via PluginPlaceholder) method |
| 77 void BindWebFrame(blink::WebFrame* frame) override; | 77 void BindWebFrame(blink::WebFrame* frame) override; |
| 78 | 78 |
| 79 // gin::Wrappable method: | 79 // gin::Wrappable method: |
| 80 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 80 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
| 81 v8::Isolate* isolate) override; | 81 v8::Isolate* isolate) override; |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 // WebViewPlugin::Delegate methods: | 84 // WebViewPlugin::Delegate methods: |
| 85 void PluginDestroyed() override; | 85 void PluginDestroyed() override; |
| 86 v8::Local<v8::Object> GetV8ScriptableObject( |
| 87 v8::Isolate* isolate) const override; |
| 86 | 88 |
| 87 // RenderFrameObserver methods: | 89 // RenderFrameObserver methods: |
| 88 void WasShown() override; | 90 void WasShown() override; |
| 89 | 91 |
| 90 // Javascript callbacks: | 92 // Javascript callbacks: |
| 91 void LoadCallback(); | 93 void LoadCallback(); |
| 92 void HideCallback(); | 94 void HideCallback(); |
| 93 void DidFinishLoadingCallback(); | 95 void DidFinishLoadingCallback(); |
| 94 | 96 |
| 95 void UpdateMessage(); | 97 void UpdateMessage(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 std::string identifier_; | 130 std::string identifier_; |
| 129 | 131 |
| 130 base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_; | 132 base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_; |
| 131 | 133 |
| 132 DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder); | 134 DISALLOW_COPY_AND_ASSIGN(LoadablePluginPlaceholder); |
| 133 }; | 135 }; |
| 134 | 136 |
| 135 } // namespace plugins | 137 } // namespace plugins |
| 136 | 138 |
| 137 #endif // COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ | 139 #endif // COMPONENTS_PLUGINS_RENDERER_LOADABLE_PLUGIN_PLACEHOLDER_H_ |
| OLD | NEW |