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 2560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2571 RecordPeripheralDecision record_decision) const { | 2571 RecordPeripheralDecision record_decision) const { |
2572 return plugin_power_saver_helper_->GetPeripheralContentStatus( | 2572 return plugin_power_saver_helper_->GetPeripheralContentStatus( |
2573 main_frame_origin, content_origin, unobscured_size, record_decision); | 2573 main_frame_origin, content_origin, unobscured_size, record_decision); |
2574 } | 2574 } |
2575 | 2575 |
2576 void RenderFrameImpl::WhitelistContentOrigin( | 2576 void RenderFrameImpl::WhitelistContentOrigin( |
2577 const url::Origin& content_origin) { | 2577 const url::Origin& content_origin) { |
2578 return plugin_power_saver_helper_->WhitelistContentOrigin(content_origin); | 2578 return plugin_power_saver_helper_->WhitelistContentOrigin(content_origin); |
2579 } | 2579 } |
2580 | 2580 |
2581 void RenderFrameImpl::DidStartLoading() { | 2581 void RenderFrameImpl::PluginDidStartLoading() { |
2582 didStartLoading(true); | 2582 didStartLoading(true); |
2583 } | 2583 } |
2584 | 2584 |
2585 void RenderFrameImpl::DidStopLoading() { | 2585 void RenderFrameImpl::PluginDidStopLoading() { |
2586 didStopLoading(); | 2586 didStopLoading(); |
2587 } | 2587 } |
2588 #endif // BUILDFLAG(ENABLE_PLUGINS) | 2588 #endif // BUILDFLAG(ENABLE_PLUGINS) |
2589 | 2589 |
2590 bool RenderFrameImpl::IsFTPDirectoryListing() { | 2590 bool RenderFrameImpl::IsFTPDirectoryListing() { |
2591 WebURLResponseExtraDataImpl* extra_data = | 2591 WebURLResponseExtraDataImpl* extra_data = |
2592 GetExtraDataFromResponse(frame_->dataSource()->response()); | 2592 GetExtraDataFromResponse(frame_->dataSource()->response()); |
2593 return extra_data ? extra_data->is_ftp_directory_listing() : false; | 2593 return extra_data ? extra_data->is_ftp_directory_listing() : false; |
2594 } | 2594 } |
2595 | 2595 |
(...skipping 4163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6759 // event target. Potentially a Pepper plugin will receive the event. | 6759 // event target. Potentially a Pepper plugin will receive the event. |
6760 // In order to tell whether a plugin gets the last mouse event and which it | 6760 // In order to tell whether a plugin gets the last mouse event and which it |
6761 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6761 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6762 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6762 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6763 // |pepper_last_mouse_event_target_|. | 6763 // |pepper_last_mouse_event_target_|. |
6764 pepper_last_mouse_event_target_ = nullptr; | 6764 pepper_last_mouse_event_target_ = nullptr; |
6765 #endif | 6765 #endif |
6766 } | 6766 } |
6767 | 6767 |
6768 } // namespace content | 6768 } // namespace content |
OLD | NEW |