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 | 7 |
8 #include "chrome/browser/extensions/extension_sync_data.h" | 8 #include "chrome/browser/extensions/extension_sync_data.h" |
9 #include "extensions/common/constants.h" | 9 #include "extensions/common/constants.h" |
10 #include "sync/api/string_ordinal.h" | 10 #include "sync/api/string_ordinal.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // A class that encapsulates the synced properties of an Application. | 27 // A class that encapsulates the synced properties of an Application. |
28 class AppSyncData { | 28 class AppSyncData { |
29 public: | 29 public: |
30 AppSyncData(); | 30 AppSyncData(); |
31 explicit AppSyncData(const syncer::SyncData& sync_data); | 31 explicit AppSyncData(const syncer::SyncData& sync_data); |
32 explicit AppSyncData(const syncer::SyncChange& sync_change); | 32 explicit AppSyncData(const syncer::SyncChange& sync_change); |
33 AppSyncData(const Extension& extension, | 33 AppSyncData(const Extension& extension, |
34 bool enabled, | 34 bool enabled, |
35 bool incognito_enabled, | 35 bool incognito_enabled, |
36 bool remote_install, | 36 bool remote_install, |
| 37 ExtensionSyncData::OptionalBoolean all_urls_enabled, |
37 const syncer::StringOrdinal& app_launch_ordinal, | 38 const syncer::StringOrdinal& app_launch_ordinal, |
38 const syncer::StringOrdinal& page_ordinal, | 39 const syncer::StringOrdinal& page_ordinal, |
39 extensions::LaunchType launch_type); | 40 extensions::LaunchType launch_type); |
40 ~AppSyncData(); | 41 ~AppSyncData(); |
41 | 42 |
42 // Retrive sync data from this class. | 43 // Retrive sync data from this class. |
43 syncer::SyncData GetSyncData() const; | 44 syncer::SyncData GetSyncData() const; |
44 syncer::SyncChange GetSyncChange( | 45 syncer::SyncChange GetSyncChange( |
45 syncer::SyncChange::SyncChangeType change_type) const; | 46 syncer::SyncChange::SyncChangeType change_type) const; |
46 | 47 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 extensions::LaunchType launch_type_; | 91 extensions::LaunchType launch_type_; |
91 std::string bookmark_app_url_; | 92 std::string bookmark_app_url_; |
92 std::string bookmark_app_description_; | 93 std::string bookmark_app_description_; |
93 std::string bookmark_app_icon_color_; | 94 std::string bookmark_app_icon_color_; |
94 }; | 95 }; |
95 | 96 |
96 } // namespace extensions | 97 } // namespace extensions |
97 | 98 |
98 #endif // CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_ | 99 #endif // CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_ |
99 | 100 |
OLD | NEW |