1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ 6#define CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ 7 8namespace extensions { 9 10class Extension; 11 12namespace sync_helper { 13 14// NOTE: The check in the functions here only considers the data in extension 15// itself, not the environment it is in. To determine whether an extension 16// should be synced, you probably want to use util::ShoudSyncExtension and 17// util::ShouldSyncApp. 18 19// Returns true if the extension should be synced. 20bool IsSyncable(const Extension* extension); 21 22// Returns true if the extension uses the sync bucket of this type. 23bool IsSyncableExtension(const Extension* extension); 24bool IsSyncableApp(const Extension* extension); 25 26} // namespace sync_helper 27} // namespace extensions 28 29#endif // CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ 30