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

Side by Side Diff: components/update_client/update_checker.h

Issue 2237153002: Use consistent values for enabled_component_updates throughout an update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UT. Created 4 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
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_UPDATE_CLIENT_UPDATE_CHECKER_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_
6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 PersistedData* persistent); 35 PersistedData* persistent);
36 36
37 virtual ~UpdateChecker() {} 37 virtual ~UpdateChecker() {}
38 38
39 // Initiates an update check for the |items_to_check|. |additional_attributes| 39 // Initiates an update check for the |items_to_check|. |additional_attributes|
40 // provides a way to customize the <request> element. This value is inserted 40 // provides a way to customize the <request> element. This value is inserted
41 // as-is, therefore it must be well-formed as an XML attribute string. 41 // as-is, therefore it must be well-formed as an XML attribute string.
42 virtual bool CheckForUpdates( 42 virtual bool CheckForUpdates(
43 const std::vector<CrxUpdateItem*>& items_to_check, 43 const std::vector<CrxUpdateItem*>& items_to_check,
44 const std::string& additional_attributes, 44 const std::string& additional_attributes,
45 bool enabled_component_updates,
45 const UpdateCheckCallback& update_check_callback) = 0; 46 const UpdateCheckCallback& update_check_callback) = 0;
46 47
47 static std::unique_ptr<UpdateChecker> Create( 48 static std::unique_ptr<UpdateChecker> Create(
48 const scoped_refptr<Configurator>& config, 49 const scoped_refptr<Configurator>& config,
49 PersistedData* persistent); 50 PersistedData* persistent);
50 51
51 protected: 52 protected:
52 UpdateChecker() {} 53 UpdateChecker() {}
53 54
54 private: 55 private:
55 DISALLOW_COPY_AND_ASSIGN(UpdateChecker); 56 DISALLOW_COPY_AND_ASSIGN(UpdateChecker);
56 }; 57 };
57 58
58 } // namespace update_client 59 } // namespace update_client
59 60
60 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_ 61 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_CHECKER_H_
OLDNEW
« no previous file with comments | « components/update_client/test_configurator.cc ('k') | components/update_client/update_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698