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

Side by Side Diff: extensions/browser/updater/update_client_config.h

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest origin/master Created 5 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef EXTENSIONS_BROWSER_UPDATER_UPDATE_CLIENT_CONFIG_H_
6 #define EXTENSIONS_BROWSER_UPDATER_UPDATE_CLIENT_CONFIG_H_
7
8 #include <string>
9
10 #include "base/memory/ref_counted.h"
11 #include "components/update_client/configurator.h"
12
13 namespace base {
14 class SequencedTaskRunner;
15 class SingleThreadTaskRunner;
16 }
17
18 namespace extensions {
19
20 // Used to provide configuration settings to the UpdateClient.
21 class UpdateClientConfig : public update_client::Configurator {
22 public:
23 UpdateClientConfig();
24
25 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
26 const override;
27 scoped_refptr<base::SingleThreadTaskRunner> GetSingleThreadTaskRunner()
28 const override;
29
30 protected:
31 friend class base::RefCountedThreadSafe<UpdateClientConfig>;
32 ~UpdateClientConfig() override;
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(UpdateClientConfig);
36 };
37
38 } // namespace extensions
39
40 #endif // EXTENSIONS_BROWSER_UPDATER_UPDATE_CLIENT_CONFIG_H_
OLDNEW
« no previous file with comments | « extensions/browser/test_extensions_browser_client.cc ('k') | extensions/browser/updater/update_client_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698