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

Side by Side Diff: components/update_client/url_fetcher_downloader.h

Issue 2336913003: Mechanical change of base::Time to base::TimeTicks in the component updater. (Closed)
Patch Set: Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_UPDATE_CLIENT_URL_FETCHER_DOWNLOADER_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_URL_FETCHER_DOWNLOADER_H_
6 #define COMPONENTS_UPDATE_CLIENT_URL_FETCHER_DOWNLOADER_H_ 6 #define COMPONENTS_UPDATE_CLIENT_URL_FETCHER_DOWNLOADER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void DoStartDownload(const GURL& url) override; 43 void DoStartDownload(const GURL& url) override;
44 44
45 // Overrides for URLFetcherDelegate. 45 // Overrides for URLFetcherDelegate.
46 void OnURLFetchComplete(const net::URLFetcher* source) override; 46 void OnURLFetchComplete(const net::URLFetcher* source) override;
47 void OnURLFetchDownloadProgress(const net::URLFetcher* source, 47 void OnURLFetchDownloadProgress(const net::URLFetcher* source,
48 int64_t current, 48 int64_t current,
49 int64_t total) override; 49 int64_t total) override;
50 std::unique_ptr<net::URLFetcher> url_fetcher_; 50 std::unique_ptr<net::URLFetcher> url_fetcher_;
51 net::URLRequestContextGetter* context_getter_; 51 net::URLRequestContextGetter* context_getter_;
52 52
53 base::Time download_start_time_; 53 base::TimeTicks download_start_time_;
54 54
55 int64_t downloaded_bytes_; 55 int64_t downloaded_bytes_;
56 int64_t total_bytes_; 56 int64_t total_bytes_;
57 57
58 base::ThreadChecker thread_checker_; 58 base::ThreadChecker thread_checker_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(UrlFetcherDownloader); 60 DISALLOW_COPY_AND_ASSIGN(UrlFetcherDownloader);
61 }; 61 };
62 62
63 } // namespace update_client 63 } // namespace update_client
64 64
65 #endif // COMPONENTS_UPDATE_CLIENT_URL_FETCHER_DOWNLOADER_H_ 65 #endif // COMPONENTS_UPDATE_CLIENT_URL_FETCHER_DOWNLOADER_H_
OLDNEW
« no previous file with comments | « components/update_client/update_engine.cc ('k') | components/update_client/url_fetcher_downloader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698