Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / common / extensions / sync_helper.h
blobc3c3741a3b8e11f993c0ec897de4d4a20bd21d72
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.
5 #ifndef CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_
6 #define CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_
8 namespace extensions {
10 class Extension;
12 namespace sync_helper {
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::ShouldSync.
18 // Returns true if |extension| should be synced.
19 bool IsSyncable(const Extension* extension);
21 // Component extensions usually aren't synced, but some are so that they'll
22 // retain their position in the app list. Returns true for component extensions
23 // on that whitelist.
24 bool IsSyncableComponentExtension(const Extension* extension);
26 } // namespace sync_helper
27 } // namespace extensions
29 #endif // CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_