| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_MODEL_ASSOCIATOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | |
| 10 #include <string> | |
| 11 | |
| 12 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 13 #include "chrome/browser/sync/syncable/model_type.h" | 10 #include "chrome/browser/sync/syncable/model_type.h" |
| 14 | 11 |
| 15 namespace sync_api { | 12 namespace sync_api { |
| 16 class BaseNode; | 13 class BaseNode; |
| 17 } | 14 } |
| 18 | 15 |
| 19 namespace browser_sync { | 16 namespace browser_sync { |
| 20 | 17 |
| 21 // This represents the fundamental operations used for model association that | 18 // This represents the fundamental operations used for model association that |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Associates the given chrome node with the given sync id. | 75 // Associates the given chrome node with the given sync id. |
| 79 virtual void Associate(const Node* node, int64 sync_id) = 0; | 76 virtual void Associate(const Node* node, int64 sync_id) = 0; |
| 80 | 77 |
| 81 // Remove the association that corresponds to the given sync id. | 78 // Remove the association that corresponds to the given sync id. |
| 82 virtual void Disassociate(int64 sync_id) = 0; | 79 virtual void Disassociate(int64 sync_id) = 0; |
| 83 }; | 80 }; |
| 84 | 81 |
| 85 } // namespace browser_sync | 82 } // namespace browser_sync |
| 86 | 83 |
| 87 #endif // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_H_ | 84 #endif // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_H_ |
| OLD | NEW |