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

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

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_AUTOFILL_DATA_TYPE_CONTROLLER_H __ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_DATA_TYPE_CONTROLLER_H __
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_DATA_TYPE_CONTROLLER_H __ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_DATA_TYPE_CONTROLLER_H __
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "components/sync/driver/non_ui_data_type_controller.h" 14 #include "components/sync/driver/non_ui_data_type_controller.h"
15 15
16 namespace autofill { 16 namespace autofill {
17 class AutofillWebDataService; 17 class AutofillWebDataService;
18 } // namespace autofill 18 } // namespace autofill
19 19
20 namespace browser_sync { 20 namespace browser_sync {
21 21
22 // A class that manages the startup and shutdown of autofill sync. 22 // A class that manages the startup and shutdown of autofill sync.
23 class AutofillDataTypeController : public syncer::NonUIDataTypeController { 23 class AutofillDataTypeController : public sync_driver::NonUIDataTypeController {
24 public: 24 public:
25 // |dump_stack| is called when an unrecoverable error occurs. 25 // |dump_stack| is called when an unrecoverable error occurs.
26 AutofillDataTypeController( 26 AutofillDataTypeController(
27 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, 27 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
28 const base::Closure& dump_stack, 28 const base::Closure& dump_stack,
29 syncer::SyncClient* sync_client, 29 sync_driver::SyncClient* sync_client,
30 const scoped_refptr<autofill::AutofillWebDataService>& web_data_service); 30 const scoped_refptr<autofill::AutofillWebDataService>& web_data_service);
31 ~AutofillDataTypeController() override; 31 ~AutofillDataTypeController() override;
32 32
33 // NonUIDataTypeController implementation. 33 // NonUIDataTypeController implementation.
34 syncer::ModelSafeGroup model_safe_group() const override; 34 syncer::ModelSafeGroup model_safe_group() const override;
35 35
36 protected: 36 protected:
37 // NonUIDataTypeController implementation. 37 // NonUIDataTypeController implementation.
38 bool PostTaskOnBackendThread(const tracked_objects::Location& from_here, 38 bool PostTaskOnBackendThread(const tracked_objects::Location& from_here,
39 const base::Closure& task) override; 39 const base::Closure& task) override;
(...skipping 12 matching lines...) Expand all
52 52
53 // A reference to the AutofillWebDataService for this controller. 53 // A reference to the AutofillWebDataService for this controller.
54 scoped_refptr<autofill::AutofillWebDataService> web_data_service_; 54 scoped_refptr<autofill::AutofillWebDataService> web_data_service_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(AutofillDataTypeController); 56 DISALLOW_COPY_AND_ASSIGN(AutofillDataTypeController);
57 }; 57 };
58 58
59 } // namespace browser_sync 59 } // namespace browser_sync
60 60
61 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_DATA_TYPE_CONTROLLE R_H__ 61 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_DATA_TYPE_CONTROLLE R_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698