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

Side by Side Diff: components/plugins/renderer/plugin_placeholder.h

Issue 866173002: Plugin Power Saver: Add UI Overlay to throttled plugin using placeholder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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
OLDNEW
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 "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "components/plugins/renderer/webview_plugin.h" 9 #include "components/plugins/renderer/webview_plugin.h"
10 #include "content/public/renderer/render_frame_observer.h" 10 #include "content/public/renderer/render_frame_observer.h"
(...skipping 17 matching lines...) Expand all
28 blink::WebLocalFrame* frame, 28 blink::WebLocalFrame* frame,
29 const blink::WebPluginParams& params, 29 const blink::WebPluginParams& params,
30 const std::string& html_data, 30 const std::string& html_data,
31 GURL placeholderDataUrl); 31 GURL placeholderDataUrl);
32 32
33 ~PluginPlaceholder() override; 33 ~PluginPlaceholder() override;
34 34
35 blink::WebLocalFrame* GetFrame(); 35 blink::WebLocalFrame* GetFrame();
36 const blink::WebPluginParams& GetPluginParams() const; 36 const blink::WebPluginParams& GetPluginParams() const;
37 37
38 private:
39 // WebViewPlugin::Delegate methods: 38 // WebViewPlugin::Delegate methods:
40 void ShowContextMenu(const blink::WebMouseEvent&) override; 39 void ShowContextMenu(const blink::WebMouseEvent&) override;
41 void PluginDestroyed() override; 40 void PluginDestroyed() override;
42 41
42 private:
43 // RenderFrameObserver methods: 43 // RenderFrameObserver methods:
44 void OnDestruct() override; 44 void OnDestruct() override;
45 45
46 blink::WebLocalFrame* frame_; 46 blink::WebLocalFrame* frame_;
47 blink::WebPluginParams plugin_params_; 47 blink::WebPluginParams plugin_params_;
48 WebViewPlugin* plugin_; 48 WebViewPlugin* plugin_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholder); 50 DISALLOW_COPY_AND_ASSIGN(PluginPlaceholder);
51 }; 51 };
52 52
53 } // namespace plugins 53 } // namespace plugins
54 54
55 #endif // COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_ 55 #endif // COMPONENTS_PLUGINS_RENDERER_PLUGIN_PLACEHOLDER_H_
OLDNEW
« no previous file with comments | « components/plugins/renderer/loadable_plugin_placeholder.cc ('k') | content/public/renderer/plugin_instance_throttler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698