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

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

Issue 1497623002: Plugin Power Saver: Improve Poster behavior for essential plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 void LoadURLExternally(const blink::WebURLRequest& request, 367 void LoadURLExternally(const blink::WebURLRequest& request,
368 blink::WebNavigationPolicy policy) override; 368 blink::WebNavigationPolicy policy) override;
369 void ExecuteJavaScript(const base::string16& javascript) override; 369 void ExecuteJavaScript(const base::string16& javascript) override;
370 bool IsMainFrame() override; 370 bool IsMainFrame() override;
371 bool IsHidden() override; 371 bool IsHidden() override;
372 ServiceRegistry* GetServiceRegistry() override; 372 ServiceRegistry* GetServiceRegistry() override;
373 #if defined(ENABLE_PLUGINS) 373 #if defined(ENABLE_PLUGINS)
374 void RegisterPeripheralPlugin( 374 void RegisterPeripheralPlugin(
375 const url::Origin& content_origin, 375 const url::Origin& content_origin,
376 const base::Closure& unthrottle_callback) override; 376 const base::Closure& unthrottle_callback) override;
377 bool ShouldThrottleContent(const url::Origin& main_frame_origin, 377 RenderFrame::PeripheralContentStatus GetPeripheralContentStatus(
378 const url::Origin& content_origin, 378 const url::Origin& main_frame_origin,
379 int width, 379 const url::Origin& content_origin,
380 int height, 380 const gfx::Size& unobscured_size) const override;
381 bool* cross_origin_main_content) const override;
382 void WhitelistContentOrigin(const url::Origin& content_origin) override; 381 void WhitelistContentOrigin(const url::Origin& content_origin) override;
383 #endif 382 #endif
384 bool IsFTPDirectoryListing() override; 383 bool IsFTPDirectoryListing() override;
385 void AttachGuest(int element_instance_id) override; 384 void AttachGuest(int element_instance_id) override;
386 void DetachGuest(int element_instance_id) override; 385 void DetachGuest(int element_instance_id) override;
387 void SetSelectedText(const base::string16& selection_text, 386 void SetSelectedText(const base::string16& selection_text,
388 size_t offset, 387 size_t offset,
389 const gfx::Range& range) override; 388 const gfx::Range& range) override;
390 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, 389 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate,
391 v8::Local<v8::Context> context) override; 390 v8::Local<v8::Context> context) override;
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 #endif 1121 #endif
1123 1122
1124 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1123 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1125 1124
1126 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1125 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1127 }; 1126 };
1128 1127
1129 } // namespace content 1128 } // namespace content
1130 1129
1131 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1130 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698