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

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

Issue 1015023002: Plugin Power Saver: Throttle 'large' plugins that appear small. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PLUGIN_PREROLLER_H_ 5 #ifndef CHROME_RENDERER_PLUGINS_PLUGIN_PREROLLER_H_
6 #define CHROME_RENDERER_PLUGINS_PLUGIN_PREROLLER_H_ 6 #define CHROME_RENDERER_PLUGINS_PLUGIN_PREROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/common/webplugininfo.h" 9 #include "content/public/common/webplugininfo.h"
10 #include "content/public/renderer/plugin_instance_throttler.h" 10 #include "content/public/renderer/plugin_instance_throttler.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 blink::WebLocalFrame* frame_; 47 blink::WebLocalFrame* frame_;
48 blink::WebPluginParams params_; 48 blink::WebPluginParams params_;
49 content::WebPluginInfo info_; 49 content::WebPluginInfo info_;
50 std::string identifier_; 50 std::string identifier_;
51 base::string16 name_; 51 base::string16 name_;
52 base::string16 message_; 52 base::string16 message_;
53 53
54 content::PluginInstanceThrottler* throttler_; 54 content::PluginInstanceThrottler* throttler_;
55 55
56 GURL keyframe_data_url_; 56 GURL keyframe_data_url_;
57 int keyframe_width_;
58 int keyframe_height_;
57 59
58 DISALLOW_COPY_AND_ASSIGN(PluginPreroller); 60 DISALLOW_COPY_AND_ASSIGN(PluginPreroller);
59 }; 61 };
60 62
61 #endif // CHROME_RENDERER_PLUGINS_PLUGIN_PREROLLER_H_ 63 #endif // CHROME_RENDERER_PLUGINS_PLUGIN_PREROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698