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

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

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head, fix win component build Created 8 years, 7 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) 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 #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 "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool MakeRequest(const string16& access_token, 57 bool MakeRequest(const string16& access_token,
58 const RadioData& radio_data, 58 const RadioData& radio_data,
59 const WifiData& wifi_data, 59 const WifiData& wifi_data,
60 const base::Time& timestamp); 60 const base::Time& timestamp);
61 61
62 bool is_request_pending() const { return url_fetcher_ != NULL; } 62 bool is_request_pending() const { return url_fetcher_ != NULL; }
63 const GURL& url() const { return url_; } 63 const GURL& url() const { return url_; }
64 64
65 private: 65 private:
66 // content::URLFetcherDelegate 66 // content::URLFetcherDelegate
67 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE; 67 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
68 68
69 scoped_refptr<net::URLRequestContextGetter> url_context_; 69 scoped_refptr<net::URLRequestContextGetter> url_context_;
70 ListenerInterface* listener_; 70 ListenerInterface* listener_;
71 const GURL url_; 71 const GURL url_;
72 scoped_ptr<content::URLFetcher> url_fetcher_; 72 scoped_ptr<content::URLFetcher> url_fetcher_;
73 73
74 // Keep a copy of the data sent in the request, so we can refer back to it 74 // Keep a copy of the data sent in the request, so we can refer back to it
75 // when the response arrives. 75 // when the response arrives.
76 RadioData radio_data_; 76 RadioData radio_data_;
77 WifiData wifi_data_; 77 WifiData wifi_data_;
78 base::Time timestamp_; // Timestamp of the above data, not of the request. 78 base::Time timestamp_; // Timestamp of the above data, not of the request.
79 79
80 DISALLOW_COPY_AND_ASSIGN(NetworkLocationRequest); 80 DISALLOW_COPY_AND_ASSIGN(NetworkLocationRequest);
81 }; 81 };
82 82
83 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_ 83 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_
OLDNEW
« no previous file with comments | « chrome/service/gaia/service_gaia_authenticator.cc ('k') | content/browser/geolocation/network_location_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698