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

Side by Side Diff: chrome/browser/geolocation/network_location_request.h

Issue 603040: Add support for top level geolocation arbitrator, and access token persistenc... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
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_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_
6 #define CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_ 6 #define CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
11 #include "chrome/browser/geolocation/device_data_provider.h" 11 #include "chrome/browser/geolocation/device_data_provider.h"
12 #include "chrome/browser/net/url_fetcher.h" 12 #include "chrome/browser/net/url_fetcher.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 14
15 struct Position;
16 class URLRequestContextGetter; 15 class URLRequestContextGetter;
17 class URLFetcher; 16 class URLFetcher;
17 struct Position;
18 18
19 // Takes a set of device data and sends it to a server to get a position fix. 19 // Takes a set of device data and sends it to a server to get a position fix.
20 // It performs formatting of the request and interpretation of the response. 20 // It performs formatting of the request and interpretation of the response.
21 class NetworkLocationRequest : private URLFetcher::Delegate { 21 class NetworkLocationRequest : private URLFetcher::Delegate {
22 public: 22 public:
23 // Interface for receiving callbacks from a NetworkLocationRequest object. 23 // Interface for receiving callbacks from a NetworkLocationRequest object.
24 class ListenerInterface { 24 class ListenerInterface {
25 public: 25 public:
26 // Updates the listener with a new position. server_error indicates whether 26 // Updates the listener with a new position. server_error indicates whether
27 // was a server or network error - either no response or a 500 error code. 27 // was a server or network error - either no response or a 500 error code.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 int64 timestamp_; // The timestamp of the data used to make the request. 66 int64 timestamp_; // The timestamp of the data used to make the request.
67 ListenerInterface* listener_; 67 ListenerInterface* listener_;
68 const GURL url_; 68 const GURL url_;
69 string16 host_name_; 69 string16 host_name_;
70 scoped_ptr<URLFetcher> url_fetcher_; 70 scoped_ptr<URLFetcher> url_fetcher_;
71 71
72 DISALLOW_EVIL_CONSTRUCTORS(NetworkLocationRequest); 72 DISALLOW_EVIL_CONSTRUCTORS(NetworkLocationRequest);
73 }; 73 };
74 74
75 #endif // CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_ 75 #endif // CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/network_location_provider_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698