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

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

Issue 2565913002: [Onion Soup] Move WebBluetoothImpl from //content/renderer/bluetooth to Blink's bluetooth module (Closed)
Patch Set: renamed BluetoothUUID.typemap to Bluetooth.typemap Created 3 years, 11 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 4567 matching lines...) Expand 10 before | Expand all | Expand 10 after
4672 void RenderFrameImpl::unregisterProtocolHandler(const WebString& scheme, 4671 void RenderFrameImpl::unregisterProtocolHandler(const WebString& scheme,
4673 const WebURL& url) { 4672 const WebURL& url) {
4674 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); 4673 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
4675 Send(new FrameHostMsg_UnregisterProtocolHandler( 4674 Send(new FrameHostMsg_UnregisterProtocolHandler(
4676 routing_id_, 4675 routing_id_,
4677 base::UTF16ToUTF8(base::StringPiece16(scheme)), 4676 base::UTF16ToUTF8(base::StringPiece16(scheme)),
4678 url, 4677 url,
4679 user_gesture)); 4678 user_gesture));
4680 } 4679 }
4681 4680
4682 blink::WebBluetooth* RenderFrameImpl::bluetooth() {
4683 if (!bluetooth_.get())
4684 bluetooth_.reset(new WebBluetoothImpl(GetRemoteInterfaces()));
4685 return bluetooth_.get();
4686 }
4687
4688 void RenderFrameImpl::didSerializeDataForFrame( 4681 void RenderFrameImpl::didSerializeDataForFrame(
4689 const WebCString& data, 4682 const WebCString& data,
4690 WebFrameSerializerClient::FrameSerializationStatus status) { 4683 WebFrameSerializerClient::FrameSerializationStatus status) {
4691 bool end_of_data = status == WebFrameSerializerClient::CurrentFrameIsFinished; 4684 bool end_of_data = status == WebFrameSerializerClient::CurrentFrameIsFinished;
4692 Send(new FrameHostMsg_SerializedHtmlWithLocalLinksResponse( 4685 Send(new FrameHostMsg_SerializedHtmlWithLocalLinksResponse(
4693 routing_id_, data, end_of_data)); 4686 routing_id_, data, end_of_data));
4694 } 4687 }
4695 4688
4696 void RenderFrameImpl::AddObserver(RenderFrameObserver* observer) { 4689 void RenderFrameImpl::AddObserver(RenderFrameObserver* observer) {
4697 observers_.AddObserver(observer); 4690 observers_.AddObserver(observer);
(...skipping 2063 matching lines...) Expand 10 before | Expand all | Expand 10 after
6761 // event target. Potentially a Pepper plugin will receive the event. 6754 // event target. Potentially a Pepper plugin will receive the event.
6762 // In order to tell whether a plugin gets the last mouse event and which it 6755 // In order to tell whether a plugin gets the last mouse event and which it
6763 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6756 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6764 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6757 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6765 // |pepper_last_mouse_event_target_|. 6758 // |pepper_last_mouse_event_target_|.
6766 pepper_last_mouse_event_target_ = nullptr; 6759 pepper_last_mouse_event_target_ = nullptr;
6767 #endif 6760 #endif
6768 } 6761 }
6769 6762
6770 } // namespace content 6763 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698