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

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: merge 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 // WebViewPlugin::Delegate (via PluginPlaceholder) method 75 // WebViewPlugin::Delegate (via PluginPlaceholder) method
73 void BindWebFrame(blink::WebFrame* frame) override; 76 void BindWebFrame(blink::WebFrame* frame) override;
74 77
75 // gin::Wrappable (via PluginPlaceholder) method 78 // gin::Wrappable (via PluginPlaceholder) method
76 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 79 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
77 v8::Isolate* isolate) override; 80 v8::Isolate* isolate) override;
78 81
79 // content::RenderViewObserver (via PluginPlaceholder) override: 82 // content::RenderViewObserver (via PluginPlaceholder) override:
80 bool OnMessageReceived(const IPC::Message& message) override; 83 bool OnMessageReceived(const IPC::Message& message) override;
81 84
(...skipping 30 matching lines...) Expand all
112 #endif 115 #endif
113 116
114 bool has_host_; 117 bool has_host_;
115 int context_menu_request_id_; // Nonzero when request pending. 118 int context_menu_request_id_; // Nonzero when request pending.
116 base::string16 plugin_name_; 119 base::string16 plugin_name_;
117 120
118 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); 121 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder);
119 }; 122 };
120 123
121 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ 124 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698