OLD | NEW |
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 #include "components/password_manager/core/browser/affiliation_service.h" | 5 #include "components/password_manager/core/browser/affiliation_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "base/time/default_clock.h" | 14 #include "base/time/default_clock.h" |
15 #include "base/time/default_tick_clock.h" | 15 #include "base/time/default_tick_clock.h" |
16 #include "components/password_manager/core/browser/affiliation_backend.h" | 16 #include "components/password_manager/core/browser/affiliation_backend.h" |
17 #include "net/url_request/url_request_context_getter.h" | 17 #include "net/url_request/url_request_context_getter.h" |
18 | 18 |
19 namespace password_manager { | 19 namespace password_manager { |
20 | 20 |
21 AffiliationService::AffiliationService( | 21 AffiliationService::AffiliationService( |
22 scoped_refptr<base::SingleThreadTaskRunner> backend_task_runner) | 22 scoped_refptr<base::SingleThreadTaskRunner> backend_task_runner) |
23 : backend_(nullptr), | 23 : backend_(nullptr), |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 // static | 101 // static |
102 void AffiliationService::DeleteCache( | 102 void AffiliationService::DeleteCache( |
103 const base::FilePath& db_path, | 103 const base::FilePath& db_path, |
104 base::SingleThreadTaskRunner* backend_task_runner) { | 104 base::SingleThreadTaskRunner* backend_task_runner) { |
105 backend_task_runner->PostTask( | 105 backend_task_runner->PostTask( |
106 FROM_HERE, base::Bind(&AffiliationBackend::DeleteCache, db_path)); | 106 FROM_HERE, base::Bind(&AffiliationBackend::DeleteCache, db_path)); |
107 } | 107 } |
108 | 108 |
109 } // namespace password_manager | 109 } // namespace password_manager |
OLD | NEW |