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_APP_SYNC_DATA_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/extension_sync_data.h" | 9 #include "chrome/browser/extensions/extension_sync_data.h" |
10 #include "chrome/common/string_ordinal.h" | 10 #include "chrome/common/string_ordinal.h" |
11 #include "sync/api/sync_change.h" | 11 #include "sync/api/sync_change.h" |
12 | 12 |
13 class Extension; | |
14 class SyncData; | 13 class SyncData; |
15 namespace sync_pb { | 14 namespace sync_pb { |
16 class AppSpecifics; | 15 class AppSpecifics; |
17 } | 16 } |
18 | 17 |
19 namespace extensions { | 18 namespace extensions { |
20 | 19 |
| 20 class Extension; |
21 class ExtensionSyncData; | 21 class ExtensionSyncData; |
22 | 22 |
23 // A class that encapsulates the synced properties of an Application. | 23 // A class that encapsulates the synced properties of an Application. |
24 class AppSyncData { | 24 class AppSyncData { |
25 public: | 25 public: |
26 AppSyncData(); | 26 AppSyncData(); |
27 explicit AppSyncData(const SyncData& sync_data); | 27 explicit AppSyncData(const SyncData& sync_data); |
28 explicit AppSyncData(const SyncChange& sync_change); | 28 explicit AppSyncData(const SyncChange& sync_change); |
29 AppSyncData(const Extension& extension, | 29 AppSyncData(const Extension& extension, |
30 bool enabled, | 30 bool enabled, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 ExtensionSyncData extension_sync_data_; | 74 ExtensionSyncData extension_sync_data_; |
75 std::string notifications_client_id_; | 75 std::string notifications_client_id_; |
76 bool notifications_disabled_; | 76 bool notifications_disabled_; |
77 StringOrdinal app_launch_ordinal_; | 77 StringOrdinal app_launch_ordinal_; |
78 StringOrdinal page_ordinal_; | 78 StringOrdinal page_ordinal_; |
79 }; | 79 }; |
80 | 80 |
81 } // namespace extensions | 81 } // namespace extensions |
82 | 82 |
83 #endif // CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_ | 83 #endif // CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_ |
OLD | NEW |