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

Unified Diff: chrome/browser/extensions/extension_sync_data.h

Issue 6852029: [Sync] Move some extension-sync-related logic to ExtensionService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac compile error Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_sync_data.h
diff --git a/chrome/browser/extensions/extension_sync_data.h b/chrome/browser/extensions/extension_sync_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ee25445fced1cd08d13f4bf2a521b4d389ac7e8
--- /dev/null
+++ b/chrome/browser/extensions/extension_sync_data.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// A struct that encapsulates the synced properties of an Extension.
asargent_no_longer_on_chrome 2011/04/15 18:42:30 nit: move this to be right above the "struct" decl
akalin 2011/04/15 21:19:39 Done.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_
+#pragma once
+
+#include <string>
+
+#include "base/version.h"
+#include "googleurl/src/gurl.h"
+
+struct ExtensionSyncData {
+ ExtensionSyncData();
+ ~ExtensionSyncData();
+
+ std::string id;
+
+ // Version-independent properties (i.e., used even when the
+ // version of the currently-installed extension doesn't match
+ // |version|).
+ bool uninstalled;
+ bool enabled;
+ bool incognito_enabled;
+
+ // Version-dependent properties (i.e., should be used only when the
+ // version of the currenty-installed extension matches |version|).
+ Version version;
+ GURL update_url;
+};
+
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698