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

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

Issue 1522173002: Reland: Plugin Power Saver: Improve Poster behavior for essential plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix an NPE crash/race on plugin destruction 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 void LoadURLExternally(const blink::WebURLRequest& request, 368 void LoadURLExternally(const blink::WebURLRequest& request,
369 blink::WebNavigationPolicy policy) override; 369 blink::WebNavigationPolicy policy) override;
370 void ExecuteJavaScript(const base::string16& javascript) override; 370 void ExecuteJavaScript(const base::string16& javascript) override;
371 bool IsMainFrame() override; 371 bool IsMainFrame() override;
372 bool IsHidden() override; 372 bool IsHidden() override;
373 ServiceRegistry* GetServiceRegistry() override; 373 ServiceRegistry* GetServiceRegistry() override;
374 #if defined(ENABLE_PLUGINS) 374 #if defined(ENABLE_PLUGINS)
375 void RegisterPeripheralPlugin( 375 void RegisterPeripheralPlugin(
376 const url::Origin& content_origin, 376 const url::Origin& content_origin,
377 const base::Closure& unthrottle_callback) override; 377 const base::Closure& unthrottle_callback) override;
378 bool ShouldThrottleContent(const url::Origin& main_frame_origin, 378 RenderFrame::PeripheralContentStatus GetPeripheralContentStatus(
379 const url::Origin& content_origin, 379 const url::Origin& main_frame_origin,
380 int width, 380 const url::Origin& content_origin,
381 int height, 381 const gfx::Size& unobscured_size) const override;
382 bool* cross_origin_main_content) const override;
383 void WhitelistContentOrigin(const url::Origin& content_origin) override; 382 void WhitelistContentOrigin(const url::Origin& content_origin) override;
384 #endif 383 #endif
385 bool IsFTPDirectoryListing() override; 384 bool IsFTPDirectoryListing() override;
386 void AttachGuest(int element_instance_id) override; 385 void AttachGuest(int element_instance_id) override;
387 void DetachGuest(int element_instance_id) override; 386 void DetachGuest(int element_instance_id) override;
388 void SetSelectedText(const base::string16& selection_text, 387 void SetSelectedText(const base::string16& selection_text,
389 size_t offset, 388 size_t offset,
390 const gfx::Range& range) override; 389 const gfx::Range& range) override;
391 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, 390 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate,
392 v8::Local<v8::Context> context) override; 391 v8::Local<v8::Context> context) override;
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 #endif 1128 #endif
1130 1129
1131 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1130 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1132 1131
1133 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1132 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1134 }; 1133 };
1135 1134
1136 } // namespace content 1135 } // namespace content
1137 1136
1138 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1137 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698