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 "chrome/common/extensions/extension_constants.h" | 9 #include "chrome/common/extensions/extension_constants.h" |
10 #include "sync/api/string_ordinal.h" | 10 #include "sync/api/string_ordinal.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 const syncer::StringOrdinal& page_ordinal() const { return page_ordinal_; } | 54 const syncer::StringOrdinal& page_ordinal() const { return page_ordinal_; } |
55 | 55 |
56 const ExtensionSyncData& extension_sync_data() const { | 56 const ExtensionSyncData& extension_sync_data() const { |
57 return extension_sync_data_; | 57 return extension_sync_data_; |
58 } | 58 } |
59 | 59 |
60 extensions::LaunchType launch_type() const { | 60 extensions::LaunchType launch_type() const { |
61 return launch_type_; | 61 return launch_type_; |
62 } | 62 } |
63 | 63 |
| 64 const std::string& bookmark_app_url() const { |
| 65 return bookmark_app_url_; |
| 66 }; |
| 67 |
| 68 const std::string& bookmark_app_description() const { |
| 69 return bookmark_app_description_; |
| 70 }; |
| 71 |
64 private: | 72 private: |
65 // Convert an AppSyncData back out to a sync structure. | 73 // Convert an AppSyncData back out to a sync structure. |
66 void PopulateAppSpecifics(sync_pb::AppSpecifics* specifics) const; | 74 void PopulateAppSpecifics(sync_pb::AppSpecifics* specifics) const; |
67 | 75 |
68 // Populate this class from sync inputs. | 76 // Populate this class from sync inputs. |
69 void PopulateFromAppSpecifics( | 77 void PopulateFromAppSpecifics( |
70 const sync_pb::AppSpecifics& specifics); | 78 const sync_pb::AppSpecifics& specifics); |
71 void PopulateFromSyncData(const syncer::SyncData& sync_data); | 79 void PopulateFromSyncData(const syncer::SyncData& sync_data); |
72 | 80 |
73 ExtensionSyncData extension_sync_data_; | 81 ExtensionSyncData extension_sync_data_; |
74 syncer::StringOrdinal app_launch_ordinal_; | 82 syncer::StringOrdinal app_launch_ordinal_; |
75 syncer::StringOrdinal page_ordinal_; | 83 syncer::StringOrdinal page_ordinal_; |
76 extensions::LaunchType launch_type_; | 84 extensions::LaunchType launch_type_; |
| 85 std::string bookmark_app_url_; |
| 86 std::string bookmark_app_description_; |
77 }; | 87 }; |
78 | 88 |
79 } // namespace extensions | 89 } // namespace extensions |
80 | 90 |
81 #endif // CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_ | 91 #endif // CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_ |
82 | 92 |
OLD | NEW |