1868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 2868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 3868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// found in the LICENSE file. 4868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 5868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#ifndef CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ 6868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#define CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ 7868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 8868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)namespace extensions { 9868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 10868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)class Extension; 11868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 12868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)namespace sync_helper { 13868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 14f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// NOTE: The check in the functions here only considers the data in extension 15f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// itself, not the environment it is in. To determine whether an extension 16f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// should be synced, you probably want to use util::ShoudSyncExtension and 17f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)// util::ShouldSyncApp. 18f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles) 19868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Returns true if the extension should be synced. 20868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)bool IsSyncable(const Extension* extension); 21868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 22868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Returns true if the extension uses the sync bucket of this type. 23868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)bool IsSyncableExtension(const Extension* extension); 24868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)bool IsSyncableApp(const Extension* extension); 25868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 26868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)} // namespace sync_helper 27868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)} // namespace extensions 28868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 29868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#endif // CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ 30