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

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

Issue 256693005: Add WebGeolocationClient getter on RenderFrameImpl in preparation for getting it from WebFrameClien… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after
2544 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 2544 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
2545 } 2545 }
2546 2546
2547 void RenderFrameImpl::willOpenSocketStream( 2547 void RenderFrameImpl::willOpenSocketStream(
2548 blink::WebSocketStreamHandle* handle) { 2548 blink::WebSocketStreamHandle* handle) {
2549 WebSocketStreamHandleImpl* impl = 2549 WebSocketStreamHandleImpl* impl =
2550 static_cast<WebSocketStreamHandleImpl*>(handle); 2550 static_cast<WebSocketStreamHandleImpl*>(handle);
2551 impl->SetUserData(handle, new SocketStreamHandleData(routing_id_)); 2551 impl->SetUserData(handle, new SocketStreamHandleData(routing_id_));
2552 } 2552 }
2553 2553
2554 blink::WebGeolocationClient* RenderFrameImpl::geolocationClient() {
2555 return render_view_->geolocationClient();
2556 }
2557
2554 void RenderFrameImpl::willStartUsingPeerConnectionHandler( 2558 void RenderFrameImpl::willStartUsingPeerConnectionHandler(
2555 blink::WebLocalFrame* frame, 2559 blink::WebLocalFrame* frame,
2556 blink::WebRTCPeerConnectionHandler* handler) { 2560 blink::WebRTCPeerConnectionHandler* handler) {
2557 DCHECK(!frame_ || frame_ == frame); 2561 DCHECK(!frame_ || frame_ == frame);
2558 #if defined(ENABLE_WEBRTC) 2562 #if defined(ENABLE_WEBRTC)
2559 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame); 2563 static_cast<RTCPeerConnectionHandler*>(handler)->associateWithFrame(frame);
2560 #endif 2564 #endif
2561 } 2565 }
2562 2566
2563 bool RenderFrameImpl::willCheckAndDispatchMessageEvent( 2567 bool RenderFrameImpl::willCheckAndDispatchMessageEvent(
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
3166 selection_text_offset_ = offset; 3170 selection_text_offset_ = offset;
3167 selection_range_ = range; 3171 selection_range_ = range;
3168 // This IPC is dispatched by RenderWidetHost, so use its routing ID. 3172 // This IPC is dispatched by RenderWidetHost, so use its routing ID.
3169 Send(new ViewHostMsg_SelectionChanged( 3173 Send(new ViewHostMsg_SelectionChanged(
3170 GetRenderWidget()->routing_id(), text, offset, range)); 3174 GetRenderWidget()->routing_id(), text, offset, range));
3171 } 3175 }
3172 GetRenderWidget()->UpdateSelectionBounds(); 3176 GetRenderWidget()->UpdateSelectionBounds();
3173 } 3177 }
3174 3178
3175 } // namespace content 3179 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698