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

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: Remove keyframe size tracking. Unnecessary. Created 5 years, 8 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"
11 #include "content/public/renderer/render_frame_observer.h" 11 #include "content/public/renderer/render_frame_observer.h"
12 #include "third_party/WebKit/public/web/WebPluginParams.h" 12 #include "third_party/WebKit/public/web/WebPluginParams.h"
13 #include "ui/gfx/geometry/size.h"
Lei Zhang 2015/04/01 00:51:08 not needed?
tommycli 2015/04/01 18:55:28 Done.
13 #include "url/gurl.h" 14 #include "url/gurl.h"
14 15
15 namespace blink { 16 namespace blink {
16 class WebLocalFrame; 17 class WebLocalFrame;
17 class WebPlugin; 18 class WebPlugin;
18 } 19 }
19 20
20 class SkBitmap; 21 class SkBitmap;
21 22
22 // This class manages a plugin briefly for the purposes of keyframe extraction. 23 // This class manages a plugin briefly for the purposes of keyframe extraction.
(...skipping 29 matching lines...) Expand all
52 base::string16 message_; 53 base::string16 message_;
53 54
54 content::PluginInstanceThrottler* throttler_; 55 content::PluginInstanceThrottler* throttler_;
55 56
56 GURL keyframe_data_url_; 57 GURL keyframe_data_url_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(PluginPreroller); 59 DISALLOW_COPY_AND_ASSIGN(PluginPreroller);
59 }; 60 };
60 61
61 #endif // CHROME_RENDERER_PLUGINS_PLUGIN_PREROLLER_H_ 62 #endif // CHROME_RENDERER_PLUGINS_PLUGIN_PREROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698