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

Side by Side Diff: components/update_client/background_downloader_win.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_BACKGROUND_DOWNLOADER_WIN_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_BACKGROUND_DOWNLOADER_WIN_H_
6 #define COMPONENTS_UPDATE_CLIENT_BACKGROUND_DOWNLOADER_WIN_H_ 6 #define COMPONENTS_UPDATE_CLIENT_BACKGROUND_DOWNLOADER_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <bits.h> 9 #include <bits.h>
10 10
11 #include <memory>
12
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
13 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
14 #include "base/threading/thread_checker.h" 16 #include "base/threading/thread_checker.h"
15 #include "base/time/time.h" 17 #include "base/time/time.h"
16 #include "base/timer/timer.h" 18 #include "base/timer/timer.h"
17 #include "base/win/scoped_comptr.h" 19 #include "base/win/scoped_comptr.h"
18 #include "components/update_client/crx_downloader.h" 20 #include "components/update_client/crx_downloader.h"
19 21
20 namespace base { 22 namespace base {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 DWORD git_cookie_bits_manager_; 129 DWORD git_cookie_bits_manager_;
128 DWORD git_cookie_job_; 130 DWORD git_cookie_job_;
129 131
130 // COM interface pointers are valid for the thread that called 132 // COM interface pointers are valid for the thread that called
131 // |UpdateInterfacePointers| to get pointers to COM proxies, which are valid 133 // |UpdateInterfacePointers| to get pointers to COM proxies, which are valid
132 // for that thread only. 134 // for that thread only.
133 base::win::ScopedComPtr<IBackgroundCopyManager> bits_manager_; 135 base::win::ScopedComPtr<IBackgroundCopyManager> bits_manager_;
134 base::win::ScopedComPtr<IBackgroundCopyJob> job_; 136 base::win::ScopedComPtr<IBackgroundCopyJob> job_;
135 137
136 // Contains the time when the download of the current url has started. 138 // Contains the time when the download of the current url has started.
137 base::Time download_start_time_; 139 base::TimeTicks download_start_time_;
138 140
139 // Contains the time when the BITS job is last seen making progress. 141 // Contains the time when the BITS job is last seen making progress.
140 base::Time job_stuck_begin_time_; 142 base::TimeTicks job_stuck_begin_time_;
141 143
142 // Contains the path of the downloaded file if the download was successful. 144 // Contains the path of the downloaded file if the download was successful.
143 base::FilePath response_; 145 base::FilePath response_;
144 146
145 DISALLOW_COPY_AND_ASSIGN(BackgroundDownloader); 147 DISALLOW_COPY_AND_ASSIGN(BackgroundDownloader);
146 }; 148 };
147 149
148 } // namespace update_client 150 } // namespace update_client
149 151
150 #endif // COMPONENTS_UPDATE_CLIENT_BACKGROUND_DOWNLOADER_WIN_H_ 152 #endif // COMPONENTS_UPDATE_CLIENT_BACKGROUND_DOWNLOADER_WIN_H_
OLDNEW
« no previous file with comments | « components/update_client/action_update_check.cc ('k') | components/update_client/background_downloader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698