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

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

Issue 7624009: Original patch by rlarocque@chromium.org at http://codereview.chromium.org/7633077/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build pt5 Created 9 years, 4 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_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/synchronization/lock.h" 16 #include "base/synchronization/lock.h"
17 #include "chrome/browser/autofill/personal_data_manager.h" 17 #include "chrome/browser/autofill/personal_data_manager.h"
18 #include "chrome/browser/sync/engine/syncapi.h"
19 #include "chrome/browser/sync/glue/model_associator.h" 18 #include "chrome/browser/sync/glue/model_associator.h"
20 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" 19 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h"
21 #include "chrome/browser/webdata/autofill_entry.h" 20 #include "chrome/browser/webdata/autofill_entry.h"
22 21
23 class AutofillProfile; 22 class AutofillProfile;
24 23
25 class ProfileSyncService; 24 class ProfileSyncService;
26 class WebDatabase; 25 class WebDatabase;
27 26
28 namespace sync_api { 27 namespace sync_api {
28 class ReadNode;
29 class WriteTransaction; 29 class WriteTransaction;
30 } 30 } // namespace sync_api
31 31
32 namespace browser_sync { 32 namespace browser_sync {
33 33
34 extern const char kAutofillProfileTag[]; 34 extern const char kAutofillProfileTag[];
35 35
36 class AutofillChangeProcessor; 36 class AutofillChangeProcessor;
37 class UnrecoverableErrorHandler; 37 class UnrecoverableErrorHandler;
38 38
39 // Contains all model association related logic: 39 // Contains all model association related logic:
40 // * Algorithm to associate autofill model and sync model. 40 // * Algorithm to associate autofill model and sync model.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 std::set<std::string> current_profiles; 190 std::set<std::string> current_profiles;
191 std::vector<std::string> profiles_to_delete; 191 std::vector<std::string> profiles_to_delete;
192 std::vector<AutofillProfile*> updated_profiles; 192 std::vector<AutofillProfile*> updated_profiles;
193 std::vector<AutofillProfile*> new_profiles; // We own these pointers. 193 std::vector<AutofillProfile*> new_profiles; // We own these pointers.
194 }; 194 };
195 195
196 } // namespace browser_sync 196 } // namespace browser_sync
197 197
198 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_ 198 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_MODEL_ASSOCIATOR_H_
199 199
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698