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

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

Issue 631053003: Replacing the OVERRIDE with override and FINAL with final in content/browser/geolocation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolved mac issue Created 6 years, 2 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
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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // started. In all cases, any currently pending request will be canceled. 47 // started. In all cases, any currently pending request will be canceled.
48 bool MakeRequest(const base::string16& access_token, 48 bool MakeRequest(const base::string16& access_token,
49 const WifiData& wifi_data, 49 const WifiData& wifi_data,
50 const base::Time& timestamp); 50 const base::Time& timestamp);
51 51
52 bool is_request_pending() const { return url_fetcher_ != NULL; } 52 bool is_request_pending() const { return url_fetcher_ != NULL; }
53 const GURL& url() const { return url_; } 53 const GURL& url() const { return url_; }
54 54
55 private: 55 private:
56 // net::URLFetcherDelegate 56 // net::URLFetcherDelegate
57 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; 57 virtual void OnURLFetchComplete(const net::URLFetcher* source) override;
58 58
59 scoped_refptr<net::URLRequestContextGetter> url_context_; 59 scoped_refptr<net::URLRequestContextGetter> url_context_;
60 LocationResponseCallback location_response_callback_; 60 LocationResponseCallback location_response_callback_;
61 const GURL url_; 61 const GURL url_;
62 scoped_ptr<net::URLFetcher> url_fetcher_; 62 scoped_ptr<net::URLFetcher> url_fetcher_;
63 63
64 // Keep a copy of the data sent in the request, so we can refer back to it 64 // Keep a copy of the data sent in the request, so we can refer back to it
65 // when the response arrives. 65 // when the response arrives.
66 WifiData wifi_data_; 66 WifiData wifi_data_;
67 base::Time wifi_data_timestamp_; 67 base::Time wifi_data_timestamp_;
68 68
69 // The start time for the request. 69 // The start time for the request.
70 base::TimeTicks request_start_time_; 70 base::TimeTicks request_start_time_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(NetworkLocationRequest); 72 DISALLOW_COPY_AND_ASSIGN(NetworkLocationRequest);
73 }; 73 };
74 74
75 } // namespace content 75 } // namespace content
76 76
77 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_ 77 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698