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

Side by Side Diff: chrome/browser/component_updater/component_updater_configurator.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMPONENT_UPDATER_CONFIGURATOR_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h"
11
10 class GURL; 12 class GURL;
11 13
12 namespace base { 14 namespace base {
13 class CommandLine; 15 class CommandLine;
16 class SingleThreadTaskRunner;
17 class SequencedTaskRunner;
14 class Version; 18 class Version;
15 } 19 }
16 20
17 namespace net { 21 namespace net {
18 class URLRequestContextGetter; 22 class URLRequestContextGetter;
19 } 23 }
20 24
21 namespace component_updater { 25 namespace component_updater {
22 26
23 // Controls the component updater behavior. 27 // Controls the component updater behavior.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 86
83 // True means that all ops are performed in this process. 87 // True means that all ops are performed in this process.
84 virtual bool InProcess() const = 0; 88 virtual bool InProcess() const = 0;
85 89
86 // True means that this client can handle delta updates. 90 // True means that this client can handle delta updates.
87 virtual bool DeltasEnabled() const = 0; 91 virtual bool DeltasEnabled() const = 0;
88 92
89 // True means that the background downloader can be used for downloading 93 // True means that the background downloader can be used for downloading
90 // non on-demand components. 94 // non on-demand components.
91 virtual bool UseBackgroundDownloader() const = 0; 95 virtual bool UseBackgroundDownloader() const = 0;
96
97 // Gets a task runner to a blocking pool of threads suitable for worker jobs.
98 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
99 const = 0;
100
101 // Gets a task runner for worker jobs guaranteed to run on a single thread.
102 // This thread must be capable of IO. On Windows, this thread must be
103 // initialized for use of COM objects.
104 virtual scoped_refptr<base::SingleThreadTaskRunner>
105 GetSingleThreadTaskRunner() const = 0;
92 }; 106 };
93 107
94 Configurator* MakeChromeComponentUpdaterConfigurator( 108 Configurator* MakeChromeComponentUpdaterConfigurator(
95 const base::CommandLine* cmdline, 109 const base::CommandLine* cmdline,
96 net::URLRequestContextGetter* context_getter); 110 net::URLRequestContextGetter* context_getter);
97 111
98 } // namespace component_updater 112 } // namespace component_updater
99 113
100 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_ 114 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698