| Index: chrome/browser/sync/glue/extension_util.h
|
| diff --git a/chrome/browser/sync/glue/extension_util.h b/chrome/browser/sync/glue/extension_util.h
|
| index 6433dfd83aa7c6af052816845ceb9341522e3728..68dd06eaa988faac9680c7a9ecf4d89242968cb6 100644
|
| --- a/chrome/browser/sync/glue/extension_util.h
|
| +++ b/chrome/browser/sync/glue/extension_util.h
|
| @@ -11,9 +11,11 @@
|
|
|
| #include <string>
|
|
|
| -class Extension;
|
| +#include "chrome/common/extensions/extension.h"
|
| +
|
| class ExtensionPrefs;
|
| class ExtensionServiceInterface;
|
| +class ExtensionSyncData;
|
| struct UninstalledExtensionInfo;
|
|
|
| namespace sync_pb {
|
| @@ -84,12 +86,6 @@ void GetExtensionSpecifics(const Extension& extension,
|
| const ExtensionServiceInterface& extension_service,
|
| sync_pb::ExtensionSpecifics* specifics);
|
|
|
| -// Returns whether or not the extension should be updated according to
|
| -// the specifics. |extension| must be syncable and |specifics| must
|
| -// be valid.
|
| -bool IsExtensionOutdated(const Extension& extension,
|
| - const sync_pb::ExtensionSpecifics& specifics);
|
| -
|
| // Merge |specifics| into |merged_specifics|. Both must be valid and
|
| // have the same ID. The merge policy is currently to copy the
|
| // non-user properties of |specifics| into |merged_specifics| (and the
|
| @@ -100,6 +96,23 @@ void MergeExtensionSpecifics(
|
| bool merge_user_properties,
|
| sync_pb::ExtensionSpecifics* merged_specifics);
|
|
|
| +// Fills |sync_data| with the data from |specifics|. Returns true iff
|
| +// succesful.
|
| +bool GetExtensionSyncData(
|
| + const sync_pb::ExtensionSpecifics& specifics,
|
| + ExtensionSyncData* sync_data);
|
| +
|
| +// Predicates used to filter sets of extensions.
|
| +
|
| +bool IsSyncableExtension(Extension::Type type, const GURL& update_url);
|
| +
|
| +bool IsValidAndSyncableExtension(const Extension& extension);
|
| +
|
| +bool IsSyncableApp(Extension::Type type);
|
| +
|
| +bool IsValidAndSyncableApp(
|
| + const Extension& extension);
|
| +
|
| } // namespace browser_sync
|
|
|
| #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_UTIL_H_
|
|
|