| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/version.h" | 11 #include "base/version.h" |
| 12 #include "chrome/browser/sync/api/sync_change.h" | 12 #include "chrome/browser/sync/api/sync_change.h" |
| 13 #include "chrome/common/string_ordinal.h" | 13 #include "chrome/common/string_ordinal.h" |
| 14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 15 | 15 |
| 16 class Extension; | |
| 17 class SyncData; | 16 class SyncData; |
| 18 | 17 |
| 19 namespace sync_pb { | 18 namespace sync_pb { |
| 20 class ExtensionSpecifics; | 19 class ExtensionSpecifics; |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace extensions { | 22 namespace extensions { |
| 24 | 23 |
| 24 class Extension; |
| 25 |
| 25 // A class that encapsulates the synced properties of an Extension. | 26 // A class that encapsulates the synced properties of an Extension. |
| 26 class ExtensionSyncData { | 27 class ExtensionSyncData { |
| 27 public: | 28 public: |
| 28 ExtensionSyncData(); | 29 ExtensionSyncData(); |
| 29 explicit ExtensionSyncData(const SyncData& sync_data); | 30 explicit ExtensionSyncData(const SyncData& sync_data); |
| 30 explicit ExtensionSyncData(const SyncChange& sync_change); | 31 explicit ExtensionSyncData(const SyncChange& sync_change); |
| 31 ExtensionSyncData(const Extension& extension, | 32 ExtensionSyncData(const Extension& extension, |
| 32 bool enabled, | 33 bool enabled, |
| 33 bool incognito_enabled); | 34 bool incognito_enabled); |
| 34 ~ExtensionSyncData(); | 35 ~ExtensionSyncData(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 bool enabled_; | 72 bool enabled_; |
| 72 bool incognito_enabled_; | 73 bool incognito_enabled_; |
| 73 Version version_; | 74 Version version_; |
| 74 GURL update_url_; | 75 GURL update_url_; |
| 75 std::string name_; | 76 std::string name_; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace extensions | 79 } // namespace extensions |
| 79 | 80 |
| 80 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_ | 81 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_ |
| OLD | NEW |