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

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

Issue 6591034: Move core pieces of geolocation from chrome to content.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix Linux build Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_
6 #define CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
12 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
13 #include "chrome/browser/geolocation/device_data_provider.h"
14 #include "chrome/common/net/url_fetcher.h" 14 #include "chrome/common/net/url_fetcher.h"
15 #include "content/browser/geolocation/device_data_provider.h"
15 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
16 17
17 class URLRequestContextGetter; 18 class URLRequestContextGetter;
18 class URLFetcher; 19 class URLFetcher;
19 struct Geoposition; 20 struct Geoposition;
20 struct Position; 21 struct Position;
21 22
22 // Takes a set of device data and sends it to a server to get a position fix. 23 // Takes a set of device data and sends it to a server to get a position fix.
23 // It performs formatting of the request and interpretation of the response. 24 // It performs formatting of the request and interpretation of the response.
24 class NetworkLocationRequest : private URLFetcher::Delegate { 25 class NetworkLocationRequest : private URLFetcher::Delegate {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Keep a copy of the data sent in the request, so we can refer back to it 78 // Keep a copy of the data sent in the request, so we can refer back to it
78 // when the response arrives. 79 // when the response arrives.
79 GatewayData gateway_data_; 80 GatewayData gateway_data_;
80 RadioData radio_data_; 81 RadioData radio_data_;
81 WifiData wifi_data_; 82 WifiData wifi_data_;
82 base::Time timestamp_; // Timestamp of the above data, not of the request. 83 base::Time timestamp_; // Timestamp of the above data, not of the request.
83 84
84 DISALLOW_COPY_AND_ASSIGN(NetworkLocationRequest); 85 DISALLOW_COPY_AND_ASSIGN(NetworkLocationRequest);
85 }; 86 };
86 87
87 #endif // CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_ 88 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698