1 // Copyright (c) 2011 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_EXTENSION_SYNC_DATA_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_ 7 #pragma once 8 9 #include <string> 10 11 #include "base/version.h" 12 #include "googleurl/src/gurl.h" 13 14 // A struct that encapsulates the synced properties of an Extension. 15 struct ExtensionSyncData { 16 ExtensionSyncData(); 17 ~ExtensionSyncData(); 18 19 std::string id; 20 21 // Version-independent properties (i.e., used even when the 22 // version of the currently-installed extension doesn't match 23 // |version|). 24 bool uninstalled; 25 bool enabled; 26 bool incognito_enabled; 27 28 // Version-dependent properties (i.e., should be used only when the 29 // version of the currenty-installed extension matches |version|). 30 Version version; 31 GURL update_url; 32 }; 33 34 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_ 35