OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |