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 #include "chrome/browser/component_updater/url_fetcher_downloader.h" | 5 #include "components/component_updater/url_fetcher_downloader.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/sequenced_task_runner.h" | 8 #include "base/sequenced_task_runner.h" |
9 #include "chrome/browser/component_updater/component_updater_utils.h" | 9 #include "components/component_updater/component_updater_utils.h" |
10 #include "net/base/load_flags.h" | 10 #include "net/base/load_flags.h" |
11 #include "net/url_request/url_fetcher.h" | 11 #include "net/url_request/url_fetcher.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 namespace component_updater { | 14 namespace component_updater { |
15 | 15 |
16 UrlFetcherDownloader::UrlFetcherDownloader( | 16 UrlFetcherDownloader::UrlFetcherDownloader( |
17 scoped_ptr<CrxDownloader> successor, | 17 scoped_ptr<CrxDownloader> successor, |
18 net::URLRequestContextGetter* context_getter, | 18 net::URLRequestContextGetter* context_getter, |
19 scoped_refptr<base::SequencedTaskRunner> task_runner) | 19 scoped_refptr<base::SequencedTaskRunner> task_runner) |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 total_bytes_ = total; | 98 total_bytes_ = total; |
99 | 99 |
100 Result result; | 100 Result result; |
101 result.downloaded_bytes = downloaded_bytes_; | 101 result.downloaded_bytes = downloaded_bytes_; |
102 result.total_bytes = total_bytes_; | 102 result.total_bytes = total_bytes_; |
103 | 103 |
104 OnDownloadProgress(result); | 104 OnDownloadProgress(result); |
105 } | 105 } |
106 | 106 |
107 } // namespace component_updater | 107 } // namespace component_updater |
OLD | NEW |