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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 1421693002: Plugin Power Saver: Do not always throttle plugins with posters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0025-pps-poster-pixel-tests
Patch Set: Created 5 years, 2 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_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 void LoadURLExternally(const blink::WebURLRequest& request, 353 void LoadURLExternally(const blink::WebURLRequest& request,
354 blink::WebNavigationPolicy policy) override; 354 blink::WebNavigationPolicy policy) override;
355 void ExecuteJavaScript(const base::string16& javascript) override; 355 void ExecuteJavaScript(const base::string16& javascript) override;
356 bool IsMainFrame() override; 356 bool IsMainFrame() override;
357 bool IsHidden() override; 357 bool IsHidden() override;
358 ServiceRegistry* GetServiceRegistry() override; 358 ServiceRegistry* GetServiceRegistry() override;
359 #if defined(ENABLE_PLUGINS) 359 #if defined(ENABLE_PLUGINS)
360 void RegisterPeripheralPlugin( 360 void RegisterPeripheralPlugin(
361 const url::Origin& content_origin, 361 const url::Origin& content_origin,
362 const base::Closure& unthrottle_callback) override; 362 const base::Closure& unthrottle_callback) override;
363 PluginPowerSaverHelper* plugin_power_saver_helper() { 363 bool ShouldThrottleContent(const url::Origin& main_frame_origin,
364 return plugin_power_saver_helper_; 364 const url::Origin& content_origin,
365 } 365 const std::string& plugin_module_name,
366 int width,
367 int height,
368 bool* cross_origin_main_content) const override;
369 void WhitelistContentOrigin(const url::Origin& content_origin) override;
366 #endif 370 #endif
367 bool IsFTPDirectoryListing() override; 371 bool IsFTPDirectoryListing() override;
368 void AttachGuest(int element_instance_id) override; 372 void AttachGuest(int element_instance_id) override;
369 void DetachGuest(int element_instance_id) override; 373 void DetachGuest(int element_instance_id) override;
370 void SetSelectedText(const base::string16& selection_text, 374 void SetSelectedText(const base::string16& selection_text,
371 size_t offset, 375 size_t offset,
372 const gfx::Range& range) override; 376 const gfx::Range& range) override;
373 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, 377 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate,
374 v8::Local<v8::Context> context) override; 378 v8::Local<v8::Context> context) override;
375 void AddMessageToConsole(ConsoleMessageLevel level, 379 void AddMessageToConsole(ConsoleMessageLevel level,
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 #endif 1066 #endif
1063 1067
1064 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1068 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1065 1069
1066 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1070 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1067 }; 1071 };
1068 1072
1069 } // namespace content 1073 } // namespace content
1070 1074
1071 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1075 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/plugin_power_saver_helper_browsertest.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698