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

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

Issue 264763002: Support remote installation of extensions and apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 14 matching lines...) Expand all
25 25
26 // A class that encapsulates the synced properties of an Application. 26 // A class that encapsulates the synced properties of an Application.
27 class AppSyncData { 27 class AppSyncData {
28 public: 28 public:
29 AppSyncData(); 29 AppSyncData();
30 explicit AppSyncData(const syncer::SyncData& sync_data); 30 explicit AppSyncData(const syncer::SyncData& sync_data);
31 explicit AppSyncData(const syncer::SyncChange& sync_change); 31 explicit AppSyncData(const syncer::SyncChange& sync_change);
32 AppSyncData(const Extension& extension, 32 AppSyncData(const Extension& extension,
33 bool enabled, 33 bool enabled,
34 bool incognito_enabled, 34 bool incognito_enabled,
35 bool remote_install,
35 const syncer::StringOrdinal& app_launch_ordinal, 36 const syncer::StringOrdinal& app_launch_ordinal,
36 const syncer::StringOrdinal& page_ordinal, 37 const syncer::StringOrdinal& page_ordinal,
37 extensions::LaunchType launch_type); 38 extensions::LaunchType launch_type);
38 ~AppSyncData(); 39 ~AppSyncData();
39 40
40 // Retrive sync data from this class. 41 // Retrive sync data from this class.
41 syncer::SyncData GetSyncData() const; 42 syncer::SyncData GetSyncData() const;
42 syncer::SyncChange GetSyncChange( 43 syncer::SyncChange GetSyncChange(
43 syncer::SyncChange::SyncChangeType change_type) const; 44 syncer::SyncChange::SyncChangeType change_type) const;
44 45
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 syncer::StringOrdinal page_ordinal_; 84 syncer::StringOrdinal page_ordinal_;
84 extensions::LaunchType launch_type_; 85 extensions::LaunchType launch_type_;
85 std::string bookmark_app_url_; 86 std::string bookmark_app_url_;
86 std::string bookmark_app_description_; 87 std::string bookmark_app_description_;
87 }; 88 };
88 89
89 } // namespace extensions 90 } // namespace extensions
90 91
91 #endif // CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_ 92 #endif // CHROME_BROWSER_EXTENSIONS_APP_SYNC_DATA_H_
92 93
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698