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

Side by Side Diff: components/autofill/core/browser/webdata/web_data_model_type_controller.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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_WEB_DATA_MODEL_TYPE_CONTROLLER_ H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_WEB_DATA_MODEL_TYPE_CONTROLLER_ H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h"
10 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
11 #include "components/sync/driver/model_type_controller.h"
12
13 namespace syncer {
14 class ModelTypeSyncBridge;
15 } // namespace syncer
16
17 namespace autofill {
18
19 class WebDataModelTypeController : public syncer::ModelTypeController {
20 public:
21 using BridgeFromWebData =
22 base::Callback<base::WeakPtr<syncer::ModelTypeSyncBridge>(
23 AutofillWebDataService*)>;
24
25 WebDataModelTypeController(
26 syncer::ModelType type,
27 syncer::SyncClient* sync_client,
28 const scoped_refptr<base::SingleThreadTaskRunner>& model_thread,
29 const scoped_refptr<AutofillWebDataService>& web_data_service,
30 const BridgeFromWebData& bridge_from_web_data);
31
32 ~WebDataModelTypeController() override;
33
34 private:
35 // syncer::ModelTypeController implementation.
36 syncer::ModelTypeController::BridgeProvider GetBridgeProvider() override;
37
38 // A reference to the AutofillWebDataService for this controller.
39 scoped_refptr<AutofillWebDataService> web_data_service_;
40
41 // How to grab the correct bridge from a web data.
42 BridgeFromWebData bridge_from_web_data_;
43
44 DISALLOW_COPY_AND_ASSIGN(WebDataModelTypeController);
45 };
46
47 } // namespace autofill
48
49 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_WEB_DATA_MODEL_TYPE_CONTROLL ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698