Home | History | Annotate | Download | only in extensions
      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_BROWSER_EXTENSIONS_SYNC_BUNDLE_H_
      6 #define CHROME_BROWSER_EXTENSIONS_SYNC_BUNDLE_H_
      7 
      8 namespace extensions {
      9 
     10 class Extension;
     11 
     12 // Common interface between AppSyncBundle and ExtensionSyncBundle.
     13 class SyncBundle {
     14  public:
     15   virtual ~SyncBundle() {}
     16 
     17   // Has this bundle started syncing yet?
     18   virtual bool IsSyncing() const = 0;
     19 
     20   // Syncs changes to |extension|.
     21   virtual void SyncChangeIfNeeded(const Extension& extension) = 0;
     22 };
     23 
     24 }  // namespace extensions
     25 
     26 #endif  // CHROME_BROWSER_EXTENSIONS_SYNC_BUNDLE_H_
     27