| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 bool enabled() const { return enabled_; } | 89 bool enabled() const { return enabled_; } |
| 90 bool supports_disable_reasons() const { return supports_disable_reasons_; } | 90 bool supports_disable_reasons() const { return supports_disable_reasons_; } |
| 91 int disable_reasons() const { return disable_reasons_; } | 91 int disable_reasons() const { return disable_reasons_; } |
| 92 bool incognito_enabled() const { return incognito_enabled_; } | 92 bool incognito_enabled() const { return incognito_enabled_; } |
| 93 bool remote_install() const { return remote_install_; } | 93 bool remote_install() const { return remote_install_; } |
| 94 OptionalBoolean all_urls_enabled() const { return all_urls_enabled_; } | 94 OptionalBoolean all_urls_enabled() const { return all_urls_enabled_; } |
| 95 bool installed_by_custodian() const { return installed_by_custodian_; } | 95 bool installed_by_custodian() const { return installed_by_custodian_; } |
| 96 | 96 |
| 97 // Version-dependent properties (i.e., should be used only when the | 97 // Version-dependent properties (i.e., should be used only when the |
| 98 // version of the currently-installed extension matches |version|). | 98 // version of the currently-installed extension matches |version|). |
| 99 const base::Version& version() const { return version_; } | 99 const Version& version() const { return version_; } |
| 100 const GURL& update_url() const { return update_url_; } | 100 const GURL& update_url() const { return update_url_; } |
| 101 // Used only for debugging. | 101 // Used only for debugging. |
| 102 const std::string& name() const { return name_; } | 102 const std::string& name() const { return name_; } |
| 103 | 103 |
| 104 // Everything below is App-specific - only set for Apps, not Extensions. | 104 // Everything below is App-specific - only set for Apps, not Extensions. |
| 105 | 105 |
| 106 // These ordinals aren't necessarily valid. Some applications don't have | 106 // These ordinals aren't necessarily valid. Some applications don't have |
| 107 // valid ordinals because they don't appear on the new tab page. | 107 // valid ordinals because they don't appear on the new tab page. |
| 108 const syncer::StringOrdinal& app_launch_ordinal() const { | 108 const syncer::StringOrdinal& app_launch_ordinal() const { |
| 109 return app_launch_ordinal_; | 109 return app_launch_ordinal_; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // |supports_disable_reasons_| is true if the optional |disable_reasons_| was | 147 // |supports_disable_reasons_| is true if the optional |disable_reasons_| was |
| 148 // set to some value in the extension_specifics.proto. If not, | 148 // set to some value in the extension_specifics.proto. If not, |
| 149 // |disable_reasons_| is given a default value and |supports_disable_reasons_| | 149 // |disable_reasons_| is given a default value and |supports_disable_reasons_| |
| 150 // is false. | 150 // is false. |
| 151 bool supports_disable_reasons_; | 151 bool supports_disable_reasons_; |
| 152 int disable_reasons_; | 152 int disable_reasons_; |
| 153 bool incognito_enabled_; | 153 bool incognito_enabled_; |
| 154 bool remote_install_; | 154 bool remote_install_; |
| 155 OptionalBoolean all_urls_enabled_; | 155 OptionalBoolean all_urls_enabled_; |
| 156 bool installed_by_custodian_; | 156 bool installed_by_custodian_; |
| 157 base::Version version_; | 157 Version version_; |
| 158 GURL update_url_; | 158 GURL update_url_; |
| 159 std::string name_; | 159 std::string name_; |
| 160 | 160 |
| 161 // App-specific fields. | 161 // App-specific fields. |
| 162 syncer::StringOrdinal app_launch_ordinal_; | 162 syncer::StringOrdinal app_launch_ordinal_; |
| 163 syncer::StringOrdinal page_ordinal_; | 163 syncer::StringOrdinal page_ordinal_; |
| 164 extensions::LaunchType launch_type_; | 164 extensions::LaunchType launch_type_; |
| 165 std::string bookmark_app_url_; | 165 std::string bookmark_app_url_; |
| 166 std::string bookmark_app_description_; | 166 std::string bookmark_app_description_; |
| 167 std::string bookmark_app_icon_color_; | 167 std::string bookmark_app_icon_color_; |
| 168 std::vector<LinkedAppIconInfo> linked_icons_; | 168 std::vector<LinkedAppIconInfo> linked_icons_; |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace extensions | 171 } // namespace extensions |
| 172 | 172 |
| 173 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_ | 173 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_ |
| OLD | NEW |