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

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

Issue 2211753002: Plugin Power Saver Tiny: Fix Plugin.PowerSaver.PeripheralHeuristic UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // - Same-origin: a.com -> b.com/iframe-to-a.html -> a.com/plugin.swf 170 // - Same-origin: a.com -> b.com/iframe-to-a.html -> a.com/plugin.swf
171 // 171 //
172 // |main_frame_origin| is the origin of the main frame. 172 // |main_frame_origin| is the origin of the main frame.
173 // 173 //
174 // |content_origin| is the origin of the plugin content. 174 // |content_origin| is the origin of the plugin content.
175 // 175 //
176 // |unobscured_size| are zoom and device scale independent logical pixels. 176 // |unobscured_size| are zoom and device scale independent logical pixels.
177 virtual PeripheralContentStatus GetPeripheralContentStatus( 177 virtual PeripheralContentStatus GetPeripheralContentStatus(
178 const url::Origin& main_frame_origin, 178 const url::Origin& main_frame_origin,
179 const url::Origin& content_origin, 179 const url::Origin& content_origin,
180 const gfx::Size& unobscured_size) const = 0; 180 const gfx::Size& unobscured_size,
181 bool record_decision) const = 0;
181 182
182 // Whitelists a |content_origin| so its content will never be throttled in 183 // Whitelists a |content_origin| so its content will never be throttled in
183 // this RenderFrame. Whitelist is cleared by top level navigation. 184 // this RenderFrame. Whitelist is cleared by top level navigation.
184 virtual void WhitelistContentOrigin(const url::Origin& content_origin) = 0; 185 virtual void WhitelistContentOrigin(const url::Origin& content_origin) = 0;
185 #endif 186 #endif
186 187
187 // Returns true if this frame is a FTP directory listing. 188 // Returns true if this frame is a FTP directory listing.
188 virtual bool IsFTPDirectoryListing() = 0; 189 virtual bool IsFTPDirectoryListing() = 0;
189 190
190 // Attaches the browser plugin identified by |element_instance_id| to guest 191 // Attaches the browser plugin identified by |element_instance_id| to guest
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 224
224 private: 225 private:
225 // This interface should only be implemented inside content. 226 // This interface should only be implemented inside content.
226 friend class RenderFrameImpl; 227 friend class RenderFrameImpl;
227 RenderFrame() {} 228 RenderFrame() {}
228 }; 229 };
229 230
230 } // namespace content 231 } // namespace content
231 232
232 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 233 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698