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

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

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 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 2438 matching lines...) Expand 10 before | Expand all | Expand 10 after
2449 const url::Origin& content_origin, 2449 const url::Origin& content_origin,
2450 const base::Closure& unthrottle_callback) { 2450 const base::Closure& unthrottle_callback) {
2451 return plugin_power_saver_helper_->RegisterPeripheralPlugin( 2451 return plugin_power_saver_helper_->RegisterPeripheralPlugin(
2452 content_origin, unthrottle_callback); 2452 content_origin, unthrottle_callback);
2453 } 2453 }
2454 2454
2455 RenderFrame::PeripheralContentStatus 2455 RenderFrame::PeripheralContentStatus
2456 RenderFrameImpl::GetPeripheralContentStatus( 2456 RenderFrameImpl::GetPeripheralContentStatus(
2457 const url::Origin& main_frame_origin, 2457 const url::Origin& main_frame_origin,
2458 const url::Origin& content_origin, 2458 const url::Origin& content_origin,
2459 const gfx::Size& unobscured_size) const { 2459 const gfx::Size& unobscured_size,
2460 bool record_decision) const {
2460 return plugin_power_saver_helper_->GetPeripheralContentStatus( 2461 return plugin_power_saver_helper_->GetPeripheralContentStatus(
2461 main_frame_origin, content_origin, unobscured_size); 2462 main_frame_origin, content_origin, unobscured_size, record_decision);
2462 } 2463 }
2463 2464
2464 void RenderFrameImpl::WhitelistContentOrigin( 2465 void RenderFrameImpl::WhitelistContentOrigin(
2465 const url::Origin& content_origin) { 2466 const url::Origin& content_origin) {
2466 return plugin_power_saver_helper_->WhitelistContentOrigin(content_origin); 2467 return plugin_power_saver_helper_->WhitelistContentOrigin(content_origin);
2467 } 2468 }
2468 #endif // defined(ENABLE_PLUGINS) 2469 #endif // defined(ENABLE_PLUGINS)
2469 2470
2470 bool RenderFrameImpl::IsFTPDirectoryListing() { 2471 bool RenderFrameImpl::IsFTPDirectoryListing() {
2471 WebURLResponseExtraDataImpl* extra_data = 2472 WebURLResponseExtraDataImpl* extra_data =
(...skipping 3875 matching lines...) Expand 10 before | Expand all | Expand 10 after
6347 // event target. Potentially a Pepper plugin will receive the event. 6348 // event target. Potentially a Pepper plugin will receive the event.
6348 // In order to tell whether a plugin gets the last mouse event and which it 6349 // In order to tell whether a plugin gets the last mouse event and which it
6349 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6350 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6350 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6351 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6351 // |pepper_last_mouse_event_target_|. 6352 // |pepper_last_mouse_event_target_|.
6352 pepper_last_mouse_event_target_ = nullptr; 6353 pepper_last_mouse_event_target_ = nullptr;
6353 #endif 6354 #endif
6354 } 6355 }
6355 6356
6356 } // namespace content 6357 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698