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

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

Issue 8537003: Cleanup: Remove unneeded forward declarations in chrome/browser/sync. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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_PASSWORD_MODEL_ASSOCIATOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_ASSOCIATOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_ASSOCIATOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_ASSOCIATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/synchronization/lock.h" 14 #include "base/synchronization/lock.h"
15 #include "base/task.h" 15 #include "base/task.h"
16 #include "chrome/browser/history/history_types.h" 16 #include "chrome/browser/history/history_types.h"
17 #include "chrome/browser/sync/glue/model_associator.h" 17 #include "chrome/browser/sync/glue/model_associator.h"
18 #include "chrome/browser/sync/protocol/password_specifics.pb.h" 18 #include "chrome/browser/sync/protocol/password_specifics.pb.h"
19 19
20 class GURL;
21 class MessageLoop; 20 class MessageLoop;
22 class PasswordStore; 21 class PasswordStore;
23 class ProfileSyncService; 22 class ProfileSyncService;
24 23
25 namespace webkit_glue { 24 namespace webkit_glue {
26 struct PasswordForm; 25 struct PasswordForm;
27 }; 26 };
28 27
29 namespace sync_api { 28 namespace sync_api {
30 class WriteNode; 29 class WriteNode;
31 class WriteTransaction; 30 class WriteTransaction;
32 }; 31 };
33 32
34 namespace browser_sync { 33 namespace browser_sync {
35 34
36 class PasswordChangeProcessor;
37 class UnrecoverableErrorHandler;
38
39 extern const char kPasswordTag[]; 35 extern const char kPasswordTag[];
40 36
41 // Contains all model association related logic: 37 // Contains all model association related logic:
42 // * Algorithm to associate password model and sync model. 38 // * Algorithm to associate password model and sync model.
43 // * Persisting model associations and loading them back. 39 // * Persisting model associations and loading them back.
44 // We do not check if we have local data before this runs; we always 40 // We do not check if we have local data before this runs; we always
45 // merge and sync. 41 // merge and sync.
46 class PasswordModelAssociator 42 class PasswordModelAssociator
47 : public PerDataTypeAssociatorInterface<std::string, std::string> { 43 : public PerDataTypeAssociatorInterface<std::string, std::string> {
48 public: 44 public:
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 134
139 PasswordToSyncIdMap id_map_; 135 PasswordToSyncIdMap id_map_;
140 SyncIdToPasswordMap id_map_inverse_; 136 SyncIdToPasswordMap id_map_inverse_;
141 137
142 DISALLOW_COPY_AND_ASSIGN(PasswordModelAssociator); 138 DISALLOW_COPY_AND_ASSIGN(PasswordModelAssociator);
143 }; 139 };
144 140
145 } // namespace browser_sync 141 } // namespace browser_sync
146 142
147 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_ASSOCIATOR_H_ 143 #endif // CHROME_BROWSER_SYNC_GLUE_PASSWORD_MODEL_ASSOCIATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/password_change_processor.h ('k') | chrome/browser/sync/glue/session_model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698