OLD | NEW |
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 "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
17 #include "base/win/scoped_comptr.h" | 17 #include "base/win/scoped_comptr.h" |
18 #include "components/update_client/crx_downloader.h" | 18 #include "components/update_client/crx_downloader.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class FilePath; | 21 class FilePath; |
22 class MessageLoopProxy; | |
23 class SingleThreadTaskRunner; | 22 class SingleThreadTaskRunner; |
24 } | 23 } |
25 | 24 |
26 namespace update_client { | 25 namespace update_client { |
27 | 26 |
28 // Implements a downloader in terms of the BITS service. The public interface | 27 // Implements a downloader in terms of the BITS service. The public interface |
29 // of this class and the CrxDownloader overrides are expected to be called | 28 // of this class and the CrxDownloader overrides are expected to be called |
30 // from the main thread. The rest of the class code runs on a single thread | 29 // from the main thread. The rest of the class code runs on a single thread |
31 // task runner. This task runner must be initialized to work with COM objects. | 30 // task runner. This task runner must be initialized to work with COM objects. |
32 // Instances of this class are created and destroyed in the main thread. | 31 // Instances of this class are created and destroyed in the main thread. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 109 |
111 // Contains the path of the downloaded file if the download was successful. | 110 // Contains the path of the downloaded file if the download was successful. |
112 base::FilePath response_; | 111 base::FilePath response_; |
113 | 112 |
114 DISALLOW_COPY_AND_ASSIGN(BackgroundDownloader); | 113 DISALLOW_COPY_AND_ASSIGN(BackgroundDownloader); |
115 }; | 114 }; |
116 | 115 |
117 } // namespace update_client | 116 } // namespace update_client |
118 | 117 |
119 #endif // COMPONENTS_UPDATE_CLIENT_BACKGROUND_DOWNLOADER_WIN_H_ | 118 #endif // COMPONENTS_UPDATE_CLIENT_BACKGROUND_DOWNLOADER_WIN_H_ |
OLD | NEW |