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

Side by Side Diff: content/public/renderer/render_frame.h

Issue 2765633002: Plugin Power Saver Tiny: Treat completely obscured plugins as Tiny. (Closed)
Patch Set: Created 3 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 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 CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Content is peripheral, and should be throttled, but is not tiny. 74 // Content is peripheral, and should be throttled, but is not tiny.
75 CONTENT_STATUS_PERIPHERAL = 0, 75 CONTENT_STATUS_PERIPHERAL = 0,
76 // Content is essential because it's same-origin with the top-level frame. 76 // Content is essential because it's same-origin with the top-level frame.
77 CONTENT_STATUS_ESSENTIAL_SAME_ORIGIN = 1, 77 CONTENT_STATUS_ESSENTIAL_SAME_ORIGIN = 1,
78 // Content is essential even though it's cross-origin, because it's large. 78 // Content is essential even though it's cross-origin, because it's large.
79 CONTENT_STATUS_ESSENTIAL_CROSS_ORIGIN_BIG = 2, 79 CONTENT_STATUS_ESSENTIAL_CROSS_ORIGIN_BIG = 2,
80 // Content is essential because there's large content from the same origin. 80 // Content is essential because there's large content from the same origin.
81 CONTENT_STATUS_ESSENTIAL_CROSS_ORIGIN_WHITELISTED = 3, 81 CONTENT_STATUS_ESSENTIAL_CROSS_ORIGIN_WHITELISTED = 3,
82 // Content is tiny in size. These are usually blocked. 82 // Content is tiny in size. These are usually blocked.
83 CONTENT_STATUS_TINY = 4, 83 CONTENT_STATUS_TINY = 4,
84 // Content has an unknown size. 84 // Deprecated, as now entirely obscured content is treated as tiny.
85 CONTENT_STATUS_UNKNOWN_SIZE = 5, 85 DEPRECATED_CONTENT_STATUS_UNKNOWN_SIZE = 5,
86 // Must be last. 86 // Must be last.
87 CONTENT_STATUS_NUM_ITEMS 87 CONTENT_STATUS_NUM_ITEMS
88 }; 88 };
89 89
90 enum RecordPeripheralDecision { 90 enum RecordPeripheralDecision {
91 DONT_RECORD_DECISION = 0, 91 DONT_RECORD_DECISION = 0,
92 RECORD_DECISION = 1 92 RECORD_DECISION = 1
93 }; 93 };
94 94
95 // Returns the RenderFrame given a WebFrame. 95 // Returns the RenderFrame given a WebFrame.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 private: 264 private:
265 // This interface should only be implemented inside content. 265 // This interface should only be implemented inside content.
266 friend class RenderFrameImpl; 266 friend class RenderFrameImpl;
267 RenderFrame() {} 267 RenderFrame() {}
268 }; 268 };
269 269
270 } // namespace content 270 } // namespace content
271 271
272 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 272 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « components/plugins/renderer/loadable_plugin_placeholder.cc ('k') | content/renderer/pepper/plugin_instance_throttler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698