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

Side by Side Diff: chrome/browser/sync/glue/extension_sync.h

Issue 6852029: [Sync] Move some extension-sync-related logic to ExtensionService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address asargent's comments 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SYNC_GLUE_EXTENSION_SYNC_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_EXTENSION_SYNC_H_
6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_SYNC_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_SYNC_H_
7 #pragma once 7 #pragma once
8 8
9 // This file contains functions necessary for syncing 9 // This file contains functions necessary for syncing
10 // extensions-related data types. 10 // extensions-related data types.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const Extension& extension, 69 const Extension& extension,
70 const ExtensionServiceInterface& extensions_service, 70 const ExtensionServiceInterface& extensions_service,
71 sync_api::UserShare* user_share, 71 sync_api::UserShare* user_share,
72 std::string* error); 72 std::string* error);
73 73
74 // Removes the server data for the given extension ID. 74 // Removes the server data for the given extension ID.
75 void RemoveServerData(const ExtensionSyncTraits& traits, 75 void RemoveServerData(const ExtensionSyncTraits& traits,
76 const std::string& id, 76 const std::string& id,
77 sync_api::UserShare* user_share); 77 sync_api::UserShare* user_share);
78 78
79 // Starts updating the client data from the given server data.
80 void UpdateClient(const ExtensionSyncTraits& traits,
81 const sync_pb::ExtensionSpecifics& server_data,
82 ExtensionServiceInterface* extensions_service);
83
84 // Removes existing client data for the given extension.
85 void RemoveFromClient(const ExtensionSyncTraits& traits,
86 const std::string& id,
87 ExtensionServiceInterface* extensions_service);
88
89 } // namespace browser_sync 79 } // namespace browser_sync
90 80
91 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_SYNC_H_ 81 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_SYNC_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/extension_change_processor.cc ('k') | chrome/browser/sync/glue/extension_sync.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698