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

Side by Side Diff: chrome/browser/component_updater/url_fetcher_downloader.h

Issue 385013002: Componentize component_updater: Replace content::BrowserThread usage with task runners (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extraneous includes Created 6 years, 5 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
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 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_H_ 6 #define CHROME_BROWSER_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/time/time.h" 12 #include "base/time/time.h"
12 #include "chrome/browser/component_updater/crx_downloader.h" 13 #include "chrome/browser/component_updater/crx_downloader.h"
13 #include "net/url_request/url_fetcher_delegate.h" 14 #include "net/url_request/url_fetcher_delegate.h"
14 15
15 namespace net { 16 namespace net {
16 class URLFetcher; 17 class URLFetcher;
17 class URLRequestContextGetter; 18 class URLRequestContextGetter;
18 } 19 }
19 20
20 namespace component_updater { 21 namespace component_updater {
(...skipping 19 matching lines...) Expand all
40 int64 total) OVERRIDE; 41 int64 total) OVERRIDE;
41 scoped_ptr<net::URLFetcher> url_fetcher_; 42 scoped_ptr<net::URLFetcher> url_fetcher_;
42 net::URLRequestContextGetter* context_getter_; 43 net::URLRequestContextGetter* context_getter_;
43 scoped_refptr<base::SequencedTaskRunner> task_runner_; 44 scoped_refptr<base::SequencedTaskRunner> task_runner_;
44 45
45 base::Time download_start_time_; 46 base::Time download_start_time_;
46 47
47 int64 downloaded_bytes_; 48 int64 downloaded_bytes_;
48 int64 total_bytes_; 49 int64 total_bytes_;
49 50
51 base::ThreadChecker thread_checker_;
52
50 DISALLOW_COPY_AND_ASSIGN(UrlFetcherDownloader); 53 DISALLOW_COPY_AND_ASSIGN(UrlFetcherDownloader);
51 }; 54 };
52 55
53 } // namespace component_updater 56 } // namespace component_updater
54 57
55 #endif // CHROME_BROWSER_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_H_ 58 #endif // CHROME_BROWSER_COMPONENT_UPDATER_URL_FETCHER_DOWNLOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/update_checker.cc ('k') | chrome/browser/component_updater/url_fetcher_downloader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698