| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BLOCKED_PLUGIN_H_ | 5 #ifndef CHROME_RENDERER_BLOCKED_PLUGIN_H_ |
| 6 #define CHROME_RENDERER_BLOCKED_PLUGIN_H_ | 6 #define CHROME_RENDERER_BLOCKED_PLUGIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/common/notification_observer.h" | 9 #include "chrome/common/notification_observer.h" |
| 10 #include "chrome/common/notification_registrar.h" | 10 #include "chrome/common/notification_registrar.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 const NotificationDetails& details); | 40 const NotificationDetails& details); |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 virtual ~BlockedPlugin(); | 43 virtual ~BlockedPlugin(); |
| 44 | 44 |
| 45 // Javascript callbacks: | 45 // Javascript callbacks: |
| 46 // Load the blocked plugin by calling LoadPlugin() below. | 46 // Load the blocked plugin by calling LoadPlugin() below. |
| 47 // Takes no arguments, and returns nothing. | 47 // Takes no arguments, and returns nothing. |
| 48 void Load(const CppArgumentList& args, CppVariant* result); | 48 void Load(const CppArgumentList& args, CppVariant* result); |
| 49 | 49 |
| 50 // Hides the blocked plugin without running it. |
| 51 // Takes no arguments, and returns nothing. |
| 52 void Hide(const CppArgumentList& args, CppVariant* result); |
| 53 |
| 50 // Load the blocked plugin. | 54 // Load the blocked plugin. |
| 51 void LoadPlugin(); | 55 void LoadPlugin(); |
| 52 | 56 |
| 53 RenderView* render_view_; | 57 RenderView* render_view_; |
| 54 WebKit::WebFrame* frame_; | 58 WebKit::WebFrame* frame_; |
| 55 WebKit::WebPluginParams plugin_params_; | 59 WebKit::WebPluginParams plugin_params_; |
| 56 WebViewPlugin* plugin_; | 60 WebViewPlugin* plugin_; |
| 57 | 61 |
| 58 NotificationRegistrar registrar_; | 62 NotificationRegistrar registrar_; |
| 59 }; | 63 }; |
| 60 | 64 |
| 61 #endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_ | 65 #endif // CHROME_RENDERER_BLOCKED_PLUGIN_H_ |
| OLD | NEW |