OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/extensions/fake_safe_browsing_database_manager.h" | 5 #include "chrome/browser/extensions/fake_safe_browsing_database_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <iterator> | 10 #include <iterator> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 17 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
18 #include "components/safe_browsing_db/util.h" | 18 #include "components/safe_browsing_db/util.h" |
19 | 19 |
20 namespace extensions { | 20 namespace extensions { |
21 | 21 |
22 FakeSafeBrowsingDatabaseManager::FakeSafeBrowsingDatabaseManager(bool enabled) | 22 FakeSafeBrowsingDatabaseManager::FakeSafeBrowsingDatabaseManager(bool enabled) |
23 : LocalSafeBrowsingDatabaseManager(make_scoped_refptr( | 23 : LocalSafeBrowsingDatabaseManager(make_scoped_refptr( |
24 safe_browsing::SafeBrowsingService::CreateSafeBrowsingService())), | 24 safe_browsing::SafeBrowsingService::CreateSafeBrowsingService())), |
25 enabled_(enabled) {} | 25 enabled_(enabled) {} |
26 | 26 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 base::Passed(&safe_browsing_check))); | 122 base::Passed(&safe_browsing_check))); |
123 return false; | 123 return false; |
124 } | 124 } |
125 | 125 |
126 void FakeSafeBrowsingDatabaseManager::OnSafeBrowsingResult( | 126 void FakeSafeBrowsingDatabaseManager::OnSafeBrowsingResult( |
127 std::unique_ptr<SafeBrowsingCheck> result) { | 127 std::unique_ptr<SafeBrowsingCheck> result) { |
128 result->OnSafeBrowsingResult(); | 128 result->OnSafeBrowsingResult(); |
129 } | 129 } |
130 | 130 |
131 } // namespace extensions | 131 } // namespace extensions |
OLD | NEW |