Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: chrome/browser/extensions/app_sync_data.h

Issue 229553003: Implement syncing of bookmark apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/app_sync_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/app_sync_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698