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

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: fixed layout tests Created 4 years 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 #include "content/public/common/url_constants.h" 85 #include "content/public/common/url_constants.h"
86 #include "content/public/common/url_utils.h" 86 #include "content/public/common/url_utils.h"
87 #include "content/public/renderer/browser_plugin_delegate.h" 87 #include "content/public/renderer/browser_plugin_delegate.h"
88 #include "content/public/renderer/content_renderer_client.h" 88 #include "content/public/renderer/content_renderer_client.h"
89 #include "content/public/renderer/context_menu_client.h" 89 #include "content/public/renderer/context_menu_client.h"
90 #include "content/public/renderer/document_state.h" 90 #include "content/public/renderer/document_state.h"
91 #include "content/public/renderer/navigation_state.h" 91 #include "content/public/renderer/navigation_state.h"
92 #include "content/public/renderer/render_frame_observer.h" 92 #include "content/public/renderer/render_frame_observer.h"
93 #include "content/public/renderer/renderer_ppapi_host.h" 93 #include "content/public/renderer/renderer_ppapi_host.h"
94 #include "content/renderer/accessibility/render_accessibility_impl.h" 94 #include "content/renderer/accessibility/render_accessibility_impl.h"
95 #include "content/renderer/bluetooth/web_bluetooth_impl.h"
96 #include "content/renderer/browser_plugin/browser_plugin.h" 95 #include "content/renderer/browser_plugin/browser_plugin.h"
97 #include "content/renderer/browser_plugin/browser_plugin_manager.h" 96 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
98 #include "content/renderer/child_frame_compositing_helper.h" 97 #include "content/renderer/child_frame_compositing_helper.h"
99 #include "content/renderer/context_menu_params_builder.h" 98 #include "content/renderer/context_menu_params_builder.h"
100 #include "content/renderer/devtools/devtools_agent.h" 99 #include "content/renderer/devtools/devtools_agent.h"
101 #include "content/renderer/dom_automation_controller.h" 100 #include "content/renderer/dom_automation_controller.h"
102 #include "content/renderer/effective_connection_type_helper.h" 101 #include "content/renderer/effective_connection_type_helper.h"
103 #include "content/renderer/external_popup_menu.h" 102 #include "content/renderer/external_popup_menu.h"
104 #include "content/renderer/gpu/gpu_benchmarking_extension.h" 103 #include "content/renderer/gpu/gpu_benchmarking_extension.h"
105 #include "content/renderer/history_controller.h" 104 #include "content/renderer/history_controller.h"
(...skipping 4516 matching lines...) Expand 10 before | Expand all | Expand 10 after
4622 void RenderFrameImpl::unregisterProtocolHandler(const WebString& scheme, 4621 void RenderFrameImpl::unregisterProtocolHandler(const WebString& scheme,
4623 const WebURL& url) { 4622 const WebURL& url) {
4624 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); 4623 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
4625 Send(new FrameHostMsg_UnregisterProtocolHandler( 4624 Send(new FrameHostMsg_UnregisterProtocolHandler(
4626 routing_id_, 4625 routing_id_,
4627 base::UTF16ToUTF8(base::StringPiece16(scheme)), 4626 base::UTF16ToUTF8(base::StringPiece16(scheme)),
4628 url, 4627 url,
4629 user_gesture)); 4628 user_gesture));
4630 } 4629 }
4631 4630
4632 blink::WebBluetooth* RenderFrameImpl::bluetooth() {
4633 if (!bluetooth_.get())
4634 bluetooth_.reset(new WebBluetoothImpl(GetRemoteInterfaces()));
4635 return bluetooth_.get();
4636 }
4637
4638 void RenderFrameImpl::didSerializeDataForFrame( 4631 void RenderFrameImpl::didSerializeDataForFrame(
4639 const WebCString& data, 4632 const WebCString& data,
4640 WebFrameSerializerClient::FrameSerializationStatus status) { 4633 WebFrameSerializerClient::FrameSerializationStatus status) {
4641 bool end_of_data = status == WebFrameSerializerClient::CurrentFrameIsFinished; 4634 bool end_of_data = status == WebFrameSerializerClient::CurrentFrameIsFinished;
4642 Send(new FrameHostMsg_SerializedHtmlWithLocalLinksResponse( 4635 Send(new FrameHostMsg_SerializedHtmlWithLocalLinksResponse(
4643 routing_id_, data, end_of_data)); 4636 routing_id_, data, end_of_data));
4644 } 4637 }
4645 4638
4646 void RenderFrameImpl::AddObserver(RenderFrameObserver* observer) { 4639 void RenderFrameImpl::AddObserver(RenderFrameObserver* observer) {
4647 observers_.AddObserver(observer); 4640 observers_.AddObserver(observer);
(...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after
6676 // event target. Potentially a Pepper plugin will receive the event. 6669 // event target. Potentially a Pepper plugin will receive the event.
6677 // In order to tell whether a plugin gets the last mouse event and which it 6670 // In order to tell whether a plugin gets the last mouse event and which it
6678 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6671 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6679 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6672 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6680 // |pepper_last_mouse_event_target_|. 6673 // |pepper_last_mouse_event_target_|.
6681 pepper_last_mouse_event_target_ = nullptr; 6674 pepper_last_mouse_event_target_ = nullptr;
6682 #endif 6675 #endif
6683 } 6676 }
6684 6677
6685 } // namespace content 6678 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698