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

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

Issue 1341563002: Plugin Power Saver: Improve origin handling esp. with OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 namespace media { 77 namespace media {
78 class CdmFactory; 78 class CdmFactory;
79 class MediaPermission; 79 class MediaPermission;
80 class WebEncryptedMediaClientImpl; 80 class WebEncryptedMediaClientImpl;
81 } 81 }
82 82
83 namespace mojo { 83 namespace mojo {
84 class ServiceProvider; 84 class ServiceProvider;
85 } 85 }
86 86
87 namespace url {
88 class Origin;
89 }
90
87 namespace content { 91 namespace content {
88 92
89 class ChildFrameCompositingHelper; 93 class ChildFrameCompositingHelper;
90 class CompositorDependencies; 94 class CompositorDependencies;
91 class DevToolsAgent; 95 class DevToolsAgent;
92 class DocumentState; 96 class DocumentState;
93 class ExternalPopupMenu; 97 class ExternalPopupMenu;
94 class GeolocationDispatcher; 98 class GeolocationDispatcher;
95 class ManifestManager; 99 class ManifestManager;
96 class MediaStreamDispatcher; 100 class MediaStreamDispatcher;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 const blink::WebPluginParams& params, 344 const blink::WebPluginParams& params,
341 scoped_ptr<PluginInstanceThrottler> throttler) override; 345 scoped_ptr<PluginInstanceThrottler> throttler) override;
342 void LoadURLExternally(blink::WebLocalFrame* frame, 346 void LoadURLExternally(blink::WebLocalFrame* frame,
343 const blink::WebURLRequest& request, 347 const blink::WebURLRequest& request,
344 blink::WebNavigationPolicy policy) override; 348 blink::WebNavigationPolicy policy) override;
345 void ExecuteJavaScript(const base::string16& javascript) override; 349 void ExecuteJavaScript(const base::string16& javascript) override;
346 bool IsHidden() override; 350 bool IsHidden() override;
347 ServiceRegistry* GetServiceRegistry() override; 351 ServiceRegistry* GetServiceRegistry() override;
348 #if defined(ENABLE_PLUGINS) 352 #if defined(ENABLE_PLUGINS)
349 void RegisterPeripheralPlugin( 353 void RegisterPeripheralPlugin(
350 const GURL& content_origin, 354 const url::Origin& content_origin,
351 const base::Closure& unthrottle_callback) override; 355 const base::Closure& unthrottle_callback) override;
352 PluginPowerSaverHelper* plugin_power_saver_helper() { 356 PluginPowerSaverHelper* plugin_power_saver_helper() {
353 return plugin_power_saver_helper_; 357 return plugin_power_saver_helper_;
354 } 358 }
355 #endif 359 #endif
356 bool IsFTPDirectoryListing() override; 360 bool IsFTPDirectoryListing() override;
357 void AttachGuest(int element_instance_id) override; 361 void AttachGuest(int element_instance_id) override;
358 void DetachGuest(int element_instance_id) override; 362 void DetachGuest(int element_instance_id) override;
359 void SetSelectedText(const base::string16& selection_text, 363 void SetSelectedText(const base::string16& selection_text,
360 size_t offset, 364 size_t offset,
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 #endif 1042 #endif
1039 1043
1040 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1044 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1041 1045
1042 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1046 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1043 }; 1047 };
1044 1048
1045 } // namespace content 1049 } // namespace content
1046 1050
1047 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1051 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698