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

Side by Side Diff: components/password_manager/core/browser/password_store_factory_util.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_FACTORY_UTIL_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_FACTORY_UTIL_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_FACTORY_UTIL_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_FACTORY_UTIL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "components/keyed_service/core/keyed_service.h" 13 #include "components/keyed_service/core/keyed_service.h"
14 #include "components/keyed_service/core/service_access_type.h" 14 #include "components/keyed_service/core/service_access_type.h"
15 #include "components/password_manager/core/browser/login_database.h" 15 #include "components/password_manager/core/browser/login_database.h"
16 #include "components/password_manager/core/browser/password_store.h" 16 #include "components/password_manager/core/browser/password_store.h"
17 #include "components/sync/api/syncable_service.h"
17 #include "components/sync_driver/sync_service.h" 18 #include "components/sync_driver/sync_service.h"
18 #include "net/url_request/url_request_context_getter.h" 19 #include "net/url_request/url_request_context_getter.h"
19 #include "sync/api/syncable_service.h"
20 20
21 namespace password_manager { 21 namespace password_manager {
22 22
23 // Activates or deactivates affiliation-based matching for |password_store|, 23 // Activates or deactivates affiliation-based matching for |password_store|,
24 // depending on whether or not the |sync_service| is syncing passwords stored 24 // depending on whether or not the |sync_service| is syncing passwords stored
25 // therein. The AffiliationService will use |db_thread_runner| as its backend 25 // therein. The AffiliationService will use |db_thread_runner| as its backend
26 // thread, and |request_context_getter| to fetch affiliation information. This 26 // thread, and |request_context_getter| to fetch affiliation information. This
27 // function should be called whenever there is a possibility that syncing 27 // function should be called whenever there is a possibility that syncing
28 // passwords has just started or ended. 28 // passwords has just started or ended.
29 void ToggleAffiliationBasedMatchingBasedOnPasswordSyncedState( 29 void ToggleAffiliationBasedMatchingBasedOnPasswordSyncedState(
(...skipping 14 matching lines...) Expand all
44 44
45 // Creates a LoginDatabase. Looks in |profile_path| for the database file. 45 // Creates a LoginDatabase. Looks in |profile_path| for the database file.
46 // Does not call LoginDatabase::Init() -- to avoid UI jank, that needs to be 46 // Does not call LoginDatabase::Init() -- to avoid UI jank, that needs to be
47 // called by PasswordStore::Init() on the background thread. 47 // called by PasswordStore::Init() on the background thread.
48 std::unique_ptr<LoginDatabase> CreateLoginDatabase( 48 std::unique_ptr<LoginDatabase> CreateLoginDatabase(
49 const base::FilePath& profile_path); 49 const base::FilePath& profile_path);
50 50
51 } // namespace password_manager 51 } // namespace password_manager
52 52
53 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_FACTORY_UTIL_ H_ 53 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_FACTORY_UTIL_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698