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

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

Issue 526123002: Remove unused GeolocationDispatcher::geolocationDestroyed(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « content/renderer/geolocation_dispatcher.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/geolocation_dispatcher.h" 5 #include "content/renderer/geolocation_dispatcher.h"
6 6
7 #include "content/common/geolocation_messages.h" 7 #include "content/common/geolocation_messages.h"
8 #include "content/renderer/render_view_impl.h" 8 #include "content/renderer/render_view_impl.h"
9 #include "third_party/WebKit/public/platform/WebString.h" 9 #include "third_party/WebKit/public/platform/WebString.h"
10 #include "third_party/WebKit/public/web/WebGeolocationPermissionRequest.h" 10 #include "third_party/WebKit/public/web/WebGeolocationPermissionRequest.h"
(...skipping 23 matching lines...) Expand all
34 bool GeolocationDispatcher::OnMessageReceived(const IPC::Message& message) { 34 bool GeolocationDispatcher::OnMessageReceived(const IPC::Message& message) {
35 bool handled = true; 35 bool handled = true;
36 IPC_BEGIN_MESSAGE_MAP(GeolocationDispatcher, message) 36 IPC_BEGIN_MESSAGE_MAP(GeolocationDispatcher, message)
37 IPC_MESSAGE_HANDLER(GeolocationMsg_PermissionSet, OnPermissionSet) 37 IPC_MESSAGE_HANDLER(GeolocationMsg_PermissionSet, OnPermissionSet)
38 IPC_MESSAGE_HANDLER(GeolocationMsg_PositionUpdated, OnPositionUpdated) 38 IPC_MESSAGE_HANDLER(GeolocationMsg_PositionUpdated, OnPositionUpdated)
39 IPC_MESSAGE_UNHANDLED(handled = false) 39 IPC_MESSAGE_UNHANDLED(handled = false)
40 IPC_END_MESSAGE_MAP() 40 IPC_END_MESSAGE_MAP()
41 return handled; 41 return handled;
42 } 42 }
43 43
44 void GeolocationDispatcher::geolocationDestroyed() {
45 controller_.reset();
46 DCHECK(!updating_);
47 }
48
49 void GeolocationDispatcher::startUpdating() { 44 void GeolocationDispatcher::startUpdating() {
50 GURL url; 45 GURL url;
51 Send(new GeolocationHostMsg_StartUpdating( 46 Send(new GeolocationHostMsg_StartUpdating(
52 routing_id(), url, enable_high_accuracy_)); 47 routing_id(), url, enable_high_accuracy_));
53 updating_ = true; 48 updating_ = true;
54 } 49 }
55 50
56 void GeolocationDispatcher::stopUpdating() { 51 void GeolocationDispatcher::stopUpdating() {
57 Send(new GeolocationHostMsg_StopUpdating(routing_id())); 52 Send(new GeolocationHostMsg_StopUpdating(routing_id()));
58 updating_ = false; 53 updating_ = false;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 NOTREACHED() << geoposition.error_code; 145 NOTREACHED() << geoposition.error_code;
151 return; 146 return;
152 } 147 }
153 controller_->errorOccurred( 148 controller_->errorOccurred(
154 WebGeolocationError( 149 WebGeolocationError(
155 code, blink::WebString::fromUTF8(geoposition.error_message))); 150 code, blink::WebString::fromUTF8(geoposition.error_message)));
156 } 151 }
157 } 152 }
158 153
159 } // namespace content 154 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/geolocation_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698