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

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

Issue 2769113002: [Sync] Stop accessing BrowserContextKeyedServiceFactory on non-UI thread. (Closed)
Patch Set: Rebase and removing dependent patch set. Created 3 years, 8 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_PROFILE_DATA_TYPE_CONT ROLLER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT ROLLER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT ROLLER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT ROLLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 25 matching lines...) Expand all
36 36
37 protected: 37 protected:
38 // AsyncDirectoryTypeController: 38 // AsyncDirectoryTypeController:
39 bool StartModels() override; 39 bool StartModels() override;
40 void StopModels() override; 40 void StopModels() override;
41 41
42 private: 42 private:
43 // Callback to notify that WebDatabase has loaded. 43 // Callback to notify that WebDatabase has loaded.
44 void WebDatabaseLoaded(); 44 void WebDatabaseLoaded();
45 45
46 // A pointer to the sync client.
47 syncer::SyncClient* const sync_client_;
48
49 // A reference to the AutofillWebDataService for this controller. 46 // A reference to the AutofillWebDataService for this controller.
50 scoped_refptr<autofill::AutofillWebDataService> web_data_service_; 47 scoped_refptr<autofill::AutofillWebDataService> web_data_service_;
51 48
52 // Whether the database loaded callback has been registered. 49 // Whether the database loaded callback has been registered.
53 bool callback_registered_; 50 bool callback_registered_;
54 51
55 DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController); 52 DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController);
56 }; 53 };
57 54
58 } // namespace browser_sync 55 } // namespace browser_sync
59 56
60 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_C ONTROLLER_H_ 57 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_C ONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698