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

Side by Side Diff: components/component_updater/component_updater_service.h

Issue 1921973002: Convert //components/[a-e]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ 5 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_
6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ 6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
10 #include <string> 11 #include <string>
11 #include <vector> 12 #include <vector>
12 13
13 #include "base/callback_forward.h" 14 #include "base/callback_forward.h"
14 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h"
16 #include "base/version.h" 16 #include "base/version.h"
17 #include "components/update_client/update_client.h" 17 #include "components/update_client/update_client.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 class ComponentsUI; 20 class ComponentsUI;
21 class SupervisedUserWhitelistService; 21 class SupervisedUserWhitelistService;
22 22
23 namespace base { 23 namespace base {
24 class DictionaryValue; 24 class DictionaryValue;
25 class FilePath; 25 class FilePath;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // in progress, the function returns |kInProgress|. If an update is available, 144 // in progress, the function returns |kInProgress|. If an update is available,
145 // the update will be applied. The caller can subscribe to component update 145 // the update will be applied. The caller can subscribe to component update
146 // service notifications to get an indication about the outcome of the 146 // service notifications to get an indication about the outcome of the
147 // on-demand update. The function does not implement any cooldown interval. 147 // on-demand update. The function does not implement any cooldown interval.
148 // TODO(sorin): improve this API so that the result of this non-blocking 148 // TODO(sorin): improve this API so that the result of this non-blocking
149 // call is provided by a callback. 149 // call is provided by a callback.
150 virtual bool OnDemandUpdate(const std::string& id) = 0; 150 virtual bool OnDemandUpdate(const std::string& id) = 0;
151 }; 151 };
152 152
153 // Creates the component updater. 153 // Creates the component updater.
154 scoped_ptr<ComponentUpdateService> ComponentUpdateServiceFactory( 154 std::unique_ptr<ComponentUpdateService> ComponentUpdateServiceFactory(
155 const scoped_refptr<Configurator>& config); 155 const scoped_refptr<Configurator>& config);
156 156
157 } // namespace component_updater 157 } // namespace component_updater
158 158
159 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ 159 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698