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

Side by Side Diff: components/autofill/core/browser/webdata/autocomplete_sync_bridge.h

Issue 2672493002: [Sync] Switch bots to run integ tests for autofill as USS. (Closed)
Patch Set: Updated for Gang's comment. Created 3 years, 10 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOCOMPLETE_SYNC_BRIDGE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOCOMPLETE_SYNC_BRIDGE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOCOMPLETE_SYNC_BRIDGE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOCOMPLETE_SYNC_BRIDGE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h"
12 #include "base/optional.h" 13 #include "base/optional.h"
13 #include "base/scoped_observer.h" 14 #include "base/scoped_observer.h"
14 #include "base/supports_user_data.h" 15 #include "base/supports_user_data.h"
15 #include "base/threading/non_thread_safe.h" 16 #include "base/threading/non_thread_safe.h"
16 #include "components/autofill/core/browser/webdata/autofill_change.h" 17 #include "components/autofill/core/browser/webdata/autofill_change.h"
17 #include "components/autofill/core/browser/webdata/autofill_webdata_service_obse rver.h" 18 #include "components/autofill/core/browser/webdata/autofill_webdata_service_obse rver.h"
18 #include "components/sync/model/metadata_change_list.h" 19 #include "components/sync/model/metadata_change_list.h"
19 #include "components/sync/model/model_error.h" 20 #include "components/sync/model/model_error.h"
20 #include "components/sync/model/model_type_sync_bridge.h" 21 #include "components/sync/model/model_type_sync_bridge.h"
21 22
(...skipping 10 matching lines...) Expand all
32 AutocompleteSyncBridge(); 33 AutocompleteSyncBridge();
33 AutocompleteSyncBridge( 34 AutocompleteSyncBridge(
34 AutofillWebDataBackend* backend, 35 AutofillWebDataBackend* backend,
35 const ChangeProcessorFactory& change_processor_factory); 36 const ChangeProcessorFactory& change_processor_factory);
36 ~AutocompleteSyncBridge() override; 37 ~AutocompleteSyncBridge() override;
37 38
38 static void CreateForWebDataServiceAndBackend( 39 static void CreateForWebDataServiceAndBackend(
39 AutofillWebDataService* web_data_service, 40 AutofillWebDataService* web_data_service,
40 AutofillWebDataBackend* web_data_backend); 41 AutofillWebDataBackend* web_data_backend);
41 42
42 static AutocompleteSyncBridge* FromWebDataService( 43 static base::WeakPtr<syncer::ModelTypeSyncBridge> FromWebDataService(
43 AutofillWebDataService* web_data_service); 44 AutofillWebDataService* web_data_service);
44 45
45 // syncer::ModelTypeSyncBridge implementation. 46 // syncer::ModelTypeSyncBridge implementation.
46 std::unique_ptr<syncer::MetadataChangeList> CreateMetadataChangeList() 47 std::unique_ptr<syncer::MetadataChangeList> CreateMetadataChangeList()
47 override; 48 override;
48 base::Optional<syncer::ModelError> MergeSyncData( 49 base::Optional<syncer::ModelError> MergeSyncData(
49 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list, 50 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list,
50 syncer::EntityDataMap entity_data_map) override; 51 syncer::EntityDataMap entity_data_map) override;
51 base::Optional<syncer::ModelError> ApplySyncChanges( 52 base::Optional<syncer::ModelError> ApplySyncChanges(
52 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list, 53 std::unique_ptr<syncer::MetadataChangeList> metadata_change_list,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 87
87 ScopedObserver<AutofillWebDataBackend, AutocompleteSyncBridge> 88 ScopedObserver<AutofillWebDataBackend, AutocompleteSyncBridge>
88 scoped_observer_; 89 scoped_observer_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(AutocompleteSyncBridge); 91 DISALLOW_COPY_AND_ASSIGN(AutocompleteSyncBridge);
91 }; 92 };
92 93
93 } // namespace autofill 94 } // namespace autofill
94 95
95 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOCOMPLETE_SYNC_BRIDGE_H_ 96 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOCOMPLETE_SYNC_BRIDGE_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/BUILD.gn ('k') | components/autofill/core/browser/webdata/autocomplete_sync_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698