Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: chrome/renderer/blocked_plugin.h

Issue 5275007: Add the ability to remove blocked plugin containers from the page. For now,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/blocked_plugin.cc » ('j') | chrome/renderer/blocked_plugin.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/blocked_plugin.cc » ('j') | chrome/renderer/blocked_plugin.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698