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

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: merge. and change to enum 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after
2448 const url::Origin& content_origin, 2448 const url::Origin& content_origin,
2449 const base::Closure& unthrottle_callback) { 2449 const base::Closure& unthrottle_callback) {
2450 return plugin_power_saver_helper_->RegisterPeripheralPlugin( 2450 return plugin_power_saver_helper_->RegisterPeripheralPlugin(
2451 content_origin, unthrottle_callback); 2451 content_origin, unthrottle_callback);
2452 } 2452 }
2453 2453
2454 RenderFrame::PeripheralContentStatus 2454 RenderFrame::PeripheralContentStatus
2455 RenderFrameImpl::GetPeripheralContentStatus( 2455 RenderFrameImpl::GetPeripheralContentStatus(
2456 const url::Origin& main_frame_origin, 2456 const url::Origin& main_frame_origin,
2457 const url::Origin& content_origin, 2457 const url::Origin& content_origin,
2458 const gfx::Size& unobscured_size) const { 2458 const gfx::Size& unobscured_size,
2459 RecordPeripheralDecision record_decision) const {
2459 return plugin_power_saver_helper_->GetPeripheralContentStatus( 2460 return plugin_power_saver_helper_->GetPeripheralContentStatus(
2460 main_frame_origin, content_origin, unobscured_size); 2461 main_frame_origin, content_origin, unobscured_size, record_decision);
2461 } 2462 }
2462 2463
2463 void RenderFrameImpl::WhitelistContentOrigin( 2464 void RenderFrameImpl::WhitelistContentOrigin(
2464 const url::Origin& content_origin) { 2465 const url::Origin& content_origin) {
2465 return plugin_power_saver_helper_->WhitelistContentOrigin(content_origin); 2466 return plugin_power_saver_helper_->WhitelistContentOrigin(content_origin);
2466 } 2467 }
2467 #endif // defined(ENABLE_PLUGINS) 2468 #endif // defined(ENABLE_PLUGINS)
2468 2469
2469 bool RenderFrameImpl::IsFTPDirectoryListing() { 2470 bool RenderFrameImpl::IsFTPDirectoryListing() {
2470 WebURLResponseExtraDataImpl* extra_data = 2471 WebURLResponseExtraDataImpl* extra_data =
(...skipping 3899 matching lines...) Expand 10 before | Expand all | Expand 10 after
6370 // event target. Potentially a Pepper plugin will receive the event. 6371 // event target. Potentially a Pepper plugin will receive the event.
6371 // In order to tell whether a plugin gets the last mouse event and which it 6372 // In order to tell whether a plugin gets the last mouse event and which it
6372 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6373 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6373 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6374 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6374 // |pepper_last_mouse_event_target_|. 6375 // |pepper_last_mouse_event_target_|.
6375 pepper_last_mouse_event_target_ = nullptr; 6376 pepper_last_mouse_event_target_ = nullptr;
6376 #endif 6377 #endif
6377 } 6378 }
6378 6379
6379 } // namespace content 6380 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698