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

Side by Side Diff: components/component_updater/url_fetcher_downloader.cc

Issue 449643002: Componentize component_updater: Move over a bunch of files to the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « components/component_updater/url_fetcher_downloader.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/component_updater/url_fetcher_downloader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698