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

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

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 1 month 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 CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_
6 #define CONTENT_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
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const string16& access_token, 59 const string16& access_token,
60 const RadioData& radio_data, 60 const RadioData& radio_data,
61 const WifiData& wifi_data, 61 const WifiData& wifi_data,
62 const base::Time& timestamp); 62 const base::Time& timestamp);
63 63
64 bool is_request_pending() const { return url_fetcher_ != NULL; } 64 bool is_request_pending() const { return url_fetcher_ != NULL; }
65 const GURL& url() const { return url_; } 65 const GURL& url() const { return url_; }
66 66
67 private: 67 private:
68 // content::URLFetcherDelegate 68 // content::URLFetcherDelegate
69 virtual void OnURLFetchComplete(const URLFetcher* source) OVERRIDE; 69 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE;
70 70
71 scoped_refptr<net::URLRequestContextGetter> url_context_; 71 scoped_refptr<net::URLRequestContextGetter> url_context_;
72 ListenerInterface* listener_; 72 ListenerInterface* listener_;
73 const GURL url_; 73 const GURL url_;
74 scoped_ptr<URLFetcher> url_fetcher_; 74 scoped_ptr<content::URLFetcher> url_fetcher_;
75 75
76 // Keep a copy of the data sent in the request, so we can refer back to it 76 // Keep a copy of the data sent in the request, so we can refer back to it
77 // when the response arrives. 77 // when the response arrives.
78 RadioData radio_data_; 78 RadioData radio_data_;
79 WifiData wifi_data_; 79 WifiData wifi_data_;
80 base::Time timestamp_; // Timestamp of the above data, not of the request. 80 base::Time timestamp_; // Timestamp of the above data, not of the request.
81 81
82 DISALLOW_COPY_AND_ASSIGN(NetworkLocationRequest); 82 DISALLOW_COPY_AND_ASSIGN(NetworkLocationRequest);
83 }; 83 };
84 84
85 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_ 85 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698