OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_H_ | 5 #ifndef COMPONENTS_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_H_ |
6 #define CHROME_BROWSER_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_H_ | 6 #define COMPONENTS_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_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" |
11 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "chrome/browser/component_updater/crx_downloader.h" | 13 #include "components/component_updater/crx_downloader.h" |
14 #include "net/url_request/url_fetcher_delegate.h" | 14 #include "net/url_request/url_fetcher_delegate.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 class URLFetcher; | 17 class URLFetcher; |
18 class URLRequestContextGetter; | 18 class URLRequestContextGetter; |
19 } | 19 } |
20 | 20 |
21 namespace component_updater { | 21 namespace component_updater { |
22 | 22 |
23 // Implements a CRX downloader in top of the URLFetcher. | 23 // Implements a CRX downloader in top of the URLFetcher. |
(...skipping 24 matching lines...) Expand all Loading... |
48 int64 downloaded_bytes_; | 48 int64 downloaded_bytes_; |
49 int64 total_bytes_; | 49 int64 total_bytes_; |
50 | 50 |
51 base::ThreadChecker thread_checker_; | 51 base::ThreadChecker thread_checker_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(UrlFetcherDownloader); | 53 DISALLOW_COPY_AND_ASSIGN(UrlFetcherDownloader); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace component_updater | 56 } // namespace component_updater |
57 | 57 |
58 #endif // CHROME_BROWSER_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_H_ | 58 #endif // COMPONENTS_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_H_ |
OLD | NEW |