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

Side by Side Diff: chrome/renderer/plugins/chrome_plugin_placeholder.h

Issue 1114623002: Plugin Power Saver: Make PPS work well with prerendered pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ 5 #ifndef CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
6 #define CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ 6 #define CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
7 7
8 #include "components/plugins/renderer/loadable_plugin_placeholder.h" 8 #include "components/plugins/renderer/loadable_plugin_placeholder.h"
9 #include "content/public/renderer/context_menu_client.h" 9 #include "content/public/renderer/context_menu_client.h"
10 #include "content/public/renderer/render_process_observer.h" 10 #include "content/public/renderer/render_process_observer.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #endif 62 #endif
63 63
64 private: 64 private:
65 ChromePluginPlaceholder(content::RenderFrame* render_frame, 65 ChromePluginPlaceholder(content::RenderFrame* render_frame,
66 blink::WebLocalFrame* frame, 66 blink::WebLocalFrame* frame,
67 const blink::WebPluginParams& params, 67 const blink::WebPluginParams& params,
68 const std::string& html_data, 68 const std::string& html_data,
69 const base::string16& title); 69 const base::string16& title);
70 ~ChromePluginPlaceholder() override; 70 ~ChromePluginPlaceholder() override;
71 71
72 // content::LoadablePluginPlaceholder method
73 blink::WebPlugin* CreatePlugin() override;
74
72 // gin::Wrappable (via PluginPlaceholder) method 75 // gin::Wrappable (via PluginPlaceholder) method
73 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 76 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
74 v8::Isolate* isolate) override; 77 v8::Isolate* isolate) override;
75 78
76 // content::RenderViewObserver (via PluginPlaceholder) override: 79 // content::RenderViewObserver (via PluginPlaceholder) override:
77 bool OnMessageReceived(const IPC::Message& message) override; 80 bool OnMessageReceived(const IPC::Message& message) override;
78 81
79 // WebViewPlugin::Delegate (via PluginPlaceholder) methods: 82 // WebViewPlugin::Delegate (via PluginPlaceholder) methods:
80 void ShowContextMenu(const blink::WebMouseEvent&) override; 83 void ShowContextMenu(const blink::WebMouseEvent&) override;
81 84
(...skipping 29 matching lines...) Expand all
111 #endif 114 #endif
112 115
113 bool has_host_; 116 bool has_host_;
114 int context_menu_request_id_; // Nonzero when request pending. 117 int context_menu_request_id_; // Nonzero when request pending.
115 base::string16 plugin_name_; 118 base::string16 plugin_name_;
116 119
117 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); 120 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder);
118 }; 121 };
119 122
120 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ 123 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/plugins/chrome_plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698