| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |