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

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

Issue 590333002: Replace usage of basictypes.h with a combination of stdint.h and base/macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 3 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 <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
12 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/version.h" 15 #include "base/version.h"
15 #include "url/gurl.h" 16 #include "url/gurl.h"
16 17
17 class ComponentsUI; 18 class ComponentsUI;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Describes a particular component that can be installed or updated. This 68 // Describes a particular component that can be installed or updated. This
68 // structure is required to register a component with the component updater. 69 // structure is required to register a component with the component updater.
69 // |pk_hash| is the SHA256 hash of the component's public key. If the component 70 // |pk_hash| is the SHA256 hash of the component's public key. If the component
70 // is to be installed then version should be "0" or "0.0", else it should be 71 // is to be installed then version should be "0" or "0.0", else it should be
71 // the current version. |fingerprint|, and |name| are optional. 72 // the current version. |fingerprint|, and |name| are optional.
72 // |allow_background_download| specifies that the component can be background 73 // |allow_background_download| specifies that the component can be background
73 // downloaded in some cases. The default for this value is |true| and the value 74 // downloaded in some cases. The default for this value is |true| and the value
74 // can be overriden at the registration time. This is a temporary change until 75 // can be overriden at the registration time. This is a temporary change until
75 // the issue 340448 is resolved. 76 // the issue 340448 is resolved.
76 struct CrxComponent { 77 struct CrxComponent {
77 std::vector<uint8> pk_hash; 78 std::vector<uint8_t> pk_hash;
78 ComponentInstaller* installer; 79 ComponentInstaller* installer;
79 Version version; 80 Version version;
80 std::string fingerprint; 81 std::string fingerprint;
81 std::string name; 82 std::string name;
82 bool allow_background_download; 83 bool allow_background_download;
83 CrxComponent(); 84 CrxComponent();
84 ~CrxComponent(); 85 ~CrxComponent();
85 }; 86 };
86 87
87 struct CrxUpdateItem; 88 struct CrxUpdateItem;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 const std::string& component_id) = 0; 222 const std::string& component_id) = 0;
222 }; 223 };
223 224
224 // Creates the component updater. You must pass a valid |config| allocated on 225 // Creates the component updater. You must pass a valid |config| allocated on
225 // the heap which the component updater will own. 226 // the heap which the component updater will own.
226 ComponentUpdateService* ComponentUpdateServiceFactory(Configurator* config); 227 ComponentUpdateService* ComponentUpdateServiceFactory(Configurator* config);
227 228
228 } // namespace component_updater 229 } // namespace component_updater
229 230
230 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_ 231 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698