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

Side by Side Diff: chrome/renderer/geolocation_dispatcher.h

Issue 6507045: Remove unused render_view_ field from GeolocationDispatcher class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 | « no previous file | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_
6 #define CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_ 6 #define CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/renderer/render_view_observer.h" 10 #include "chrome/renderer/render_view_observer.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const WebKit::WebGeolocationPermissionRequest& permissionRequest); 45 const WebKit::WebGeolocationPermissionRequest& permissionRequest);
46 virtual void cancelPermissionRequest( 46 virtual void cancelPermissionRequest(
47 const WebKit::WebGeolocationPermissionRequest& permissionRequest); 47 const WebKit::WebGeolocationPermissionRequest& permissionRequest);
48 48
49 // Permission for using geolocation has been set. 49 // Permission for using geolocation has been set.
50 void OnGeolocationPermissionSet(int bridge_id, bool is_allowed); 50 void OnGeolocationPermissionSet(int bridge_id, bool is_allowed);
51 51
52 // We have an updated geolocation position or error code. 52 // We have an updated geolocation position or error code.
53 void OnGeolocationPositionUpdated(const Geoposition& geoposition); 53 void OnGeolocationPositionUpdated(const Geoposition& geoposition);
54 54
55 // GeolocationDispatcher is owned by RenderView. Back pointer for IPC.
56 RenderView* render_view_;
57
58 // The controller_ is valid for the lifetime of the underlying 55 // The controller_ is valid for the lifetime of the underlying
59 // WebCore::GeolocationController. geolocationDestroyed() is 56 // WebCore::GeolocationController. geolocationDestroyed() is
60 // invoked when the underlying object is destroyed. 57 // invoked when the underlying object is destroyed.
61 scoped_ptr< WebKit::WebGeolocationController> controller_; 58 scoped_ptr< WebKit::WebGeolocationController> controller_;
62 59
63 scoped_ptr<WebKit::WebGeolocationPermissionRequestManager> 60 scoped_ptr<WebKit::WebGeolocationPermissionRequestManager>
64 pending_permissions_; 61 pending_permissions_;
65 bool enable_high_accuracy_; 62 bool enable_high_accuracy_;
66 bool updating_; 63 bool updating_;
67 }; 64 };
68 65
69 #endif // CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_ 66 #endif // CHROME_RENDERER_GEOLOCATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698