| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 #include "content/public/common/url_constants.h" | 84 #include "content/public/common/url_constants.h" |
| 85 #include "content/public/common/url_utils.h" | 85 #include "content/public/common/url_utils.h" |
| 86 #include "content/public/renderer/browser_plugin_delegate.h" | 86 #include "content/public/renderer/browser_plugin_delegate.h" |
| 87 #include "content/public/renderer/content_renderer_client.h" | 87 #include "content/public/renderer/content_renderer_client.h" |
| 88 #include "content/public/renderer/context_menu_client.h" | 88 #include "content/public/renderer/context_menu_client.h" |
| 89 #include "content/public/renderer/document_state.h" | 89 #include "content/public/renderer/document_state.h" |
| 90 #include "content/public/renderer/navigation_state.h" | 90 #include "content/public/renderer/navigation_state.h" |
| 91 #include "content/public/renderer/render_frame_observer.h" | 91 #include "content/public/renderer/render_frame_observer.h" |
| 92 #include "content/public/renderer/renderer_ppapi_host.h" | 92 #include "content/public/renderer/renderer_ppapi_host.h" |
| 93 #include "content/renderer/accessibility/render_accessibility_impl.h" | 93 #include "content/renderer/accessibility/render_accessibility_impl.h" |
| 94 #include "content/renderer/bluetooth/web_bluetooth_impl.h" | |
| 95 #include "content/renderer/browser_plugin/browser_plugin.h" | 94 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 96 #include "content/renderer/browser_plugin/browser_plugin_manager.h" | 95 #include "content/renderer/browser_plugin/browser_plugin_manager.h" |
| 97 #include "content/renderer/child_frame_compositing_helper.h" | 96 #include "content/renderer/child_frame_compositing_helper.h" |
| 98 #include "content/renderer/context_menu_params_builder.h" | 97 #include "content/renderer/context_menu_params_builder.h" |
| 99 #include "content/renderer/devtools/devtools_agent.h" | 98 #include "content/renderer/devtools/devtools_agent.h" |
| 100 #include "content/renderer/dom_automation_controller.h" | 99 #include "content/renderer/dom_automation_controller.h" |
| 101 #include "content/renderer/effective_connection_type_helper.h" | 100 #include "content/renderer/effective_connection_type_helper.h" |
| 102 #include "content/renderer/external_popup_menu.h" | 101 #include "content/renderer/external_popup_menu.h" |
| 103 #include "content/renderer/gpu/gpu_benchmarking_extension.h" | 102 #include "content/renderer/gpu/gpu_benchmarking_extension.h" |
| 104 #include "content/renderer/history_controller.h" | 103 #include "content/renderer/history_controller.h" |
| (...skipping 4556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4661 void RenderFrameImpl::unregisterProtocolHandler(const WebString& scheme, | 4660 void RenderFrameImpl::unregisterProtocolHandler(const WebString& scheme, |
| 4662 const WebURL& url) { | 4661 const WebURL& url) { |
| 4663 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); | 4662 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); |
| 4664 Send(new FrameHostMsg_UnregisterProtocolHandler( | 4663 Send(new FrameHostMsg_UnregisterProtocolHandler( |
| 4665 routing_id_, | 4664 routing_id_, |
| 4666 base::UTF16ToUTF8(base::StringPiece16(scheme)), | 4665 base::UTF16ToUTF8(base::StringPiece16(scheme)), |
| 4667 url, | 4666 url, |
| 4668 user_gesture)); | 4667 user_gesture)); |
| 4669 } | 4668 } |
| 4670 | 4669 |
| 4671 blink::WebBluetooth* RenderFrameImpl::bluetooth() { | |
| 4672 if (!bluetooth_.get()) | |
| 4673 bluetooth_.reset(new WebBluetoothImpl(GetRemoteInterfaces())); | |
| 4674 return bluetooth_.get(); | |
| 4675 } | |
| 4676 | |
| 4677 void RenderFrameImpl::didSerializeDataForFrame( | 4670 void RenderFrameImpl::didSerializeDataForFrame( |
| 4678 const WebCString& data, | 4671 const WebCString& data, |
| 4679 WebFrameSerializerClient::FrameSerializationStatus status) { | 4672 WebFrameSerializerClient::FrameSerializationStatus status) { |
| 4680 bool end_of_data = status == WebFrameSerializerClient::CurrentFrameIsFinished; | 4673 bool end_of_data = status == WebFrameSerializerClient::CurrentFrameIsFinished; |
| 4681 Send(new FrameHostMsg_SerializedHtmlWithLocalLinksResponse( | 4674 Send(new FrameHostMsg_SerializedHtmlWithLocalLinksResponse( |
| 4682 routing_id_, data, end_of_data)); | 4675 routing_id_, data, end_of_data)); |
| 4683 } | 4676 } |
| 4684 | 4677 |
| 4685 void RenderFrameImpl::AddObserver(RenderFrameObserver* observer) { | 4678 void RenderFrameImpl::AddObserver(RenderFrameObserver* observer) { |
| 4686 observers_.AddObserver(observer); | 4679 observers_.AddObserver(observer); |
| (...skipping 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6727 // event target. Potentially a Pepper plugin will receive the event. | 6720 // event target. Potentially a Pepper plugin will receive the event. |
| 6728 // In order to tell whether a plugin gets the last mouse event and which it | 6721 // In order to tell whether a plugin gets the last mouse event and which it |
| 6729 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6722 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6730 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6723 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6731 // |pepper_last_mouse_event_target_|. | 6724 // |pepper_last_mouse_event_target_|. |
| 6732 pepper_last_mouse_event_target_ = nullptr; | 6725 pepper_last_mouse_event_target_ = nullptr; |
| 6733 #endif | 6726 #endif |
| 6734 } | 6727 } |
| 6735 | 6728 |
| 6736 } // namespace content | 6729 } // namespace content |
| OLD | NEW |