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

Side by Side Diff: chrome/browser/sync/glue/extension_util.h

Issue 5730004: Rename ExtensionsService to ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_SYNC_GLUE_EXTENSION_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_EXTENSION_UTIL_H_
6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 // This file contains some low-level utility functions used by 9 // This file contains some low-level utility functions used by
10 // extensions sync. 10 // extensions sync.
11 11
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 14
15 class Extension; 15 class Extension;
16 class ExtensionPrefs; 16 class ExtensionPrefs;
17 class ExtensionTypeSet; 17 class ExtensionTypeSet;
18 class ExtensionsService; 18 class ExtensionService;
19 struct UninstalledExtensionInfo; 19 struct UninstalledExtensionInfo;
20 20
21 namespace sync_pb { 21 namespace sync_pb {
22 class ExtensionSpecifics; 22 class ExtensionSpecifics;
23 } // sync_pb 23 } // sync_pb
24 24
25 namespace browser_sync { 25 namespace browser_sync {
26 26
27 enum ExtensionType { 27 enum ExtensionType {
28 THEME, 28 THEME,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // the specifics. |extension| must be syncable and |specifics| must 125 // the specifics. |extension| must be syncable and |specifics| must
126 // be valid. 126 // be valid.
127 bool IsExtensionOutdated(const Extension& extension, 127 bool IsExtensionOutdated(const Extension& extension,
128 const sync_pb::ExtensionSpecifics& specifics); 128 const sync_pb::ExtensionSpecifics& specifics);
129 129
130 // Sets properties of |extension| according to the information in 130 // Sets properties of |extension| according to the information in
131 // specifics. |extension| must be syncable and |specifics| must be 131 // specifics. |extension| must be syncable and |specifics| must be
132 // valid. 132 // valid.
133 void SetExtensionProperties( 133 void SetExtensionProperties(
134 const sync_pb::ExtensionSpecifics& specifics, 134 const sync_pb::ExtensionSpecifics& specifics,
135 ExtensionsService* extensions_service, const Extension* extension); 135 ExtensionService* extensions_service, const Extension* extension);
136 136
137 // Merge |specifics| into |merged_specifics|. Both must be valid and 137 // Merge |specifics| into |merged_specifics|. Both must be valid and
138 // have the same ID. The merge policy is currently to copy the 138 // have the same ID. The merge policy is currently to copy the
139 // non-user properties of |specifics| into |merged_specifics| (and the 139 // non-user properties of |specifics| into |merged_specifics| (and the
140 // user properties if |merge_user_properties| is set) if |specifics| 140 // user properties if |merge_user_properties| is set) if |specifics|
141 // has a more recent or the same version as |merged_specifics|. 141 // has a more recent or the same version as |merged_specifics|.
142 void MergeExtensionSpecifics( 142 void MergeExtensionSpecifics(
143 const sync_pb::ExtensionSpecifics& specifics, 143 const sync_pb::ExtensionSpecifics& specifics,
144 bool merge_user_properties, 144 bool merge_user_properties,
145 sync_pb::ExtensionSpecifics* merged_specifics); 145 sync_pb::ExtensionSpecifics* merged_specifics);
146 146
147 } // namespace browser_sync 147 } // namespace browser_sync
148 148
149 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_UTIL_H_ 149 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/extension_sync_traits.h ('k') | chrome/browser/sync/glue/extension_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698