OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 CHROME_BROWSER_SAFE_BROWSING_TEST_SAFE_BROWSING_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_TEST_SAFE_BROWSING_SERVICE_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_TEST_SAFE_BROWSING_SERVICE_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_TEST_SAFE_BROWSING_SERVICE_H_ |
7 | 7 |
8 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 8 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
9 | 9 |
10 #include "chrome/browser/safe_browsing/protocol_manager.h" | 10 #include "chrome/browser/safe_browsing/protocol_manager.h" |
11 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" | 11 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" |
12 #include "chrome/browser/safe_browsing/ui_manager.h" | 12 #include "chrome/browser/safe_browsing/ui_manager.h" |
13 #include "components/safe_browsing_db/v4_protocol_manager_util.h" | 13 #include "components/safe_browsing_db/v4_protocol_manager_util.h" |
14 | 14 |
15 namespace safe_browsing { | 15 namespace safe_browsing { |
16 struct SafeBrowsingProtocolConfig; | 16 struct SafeBrowsingProtocolConfig; |
17 class SafeBrowsingDatabaseManager; | 17 class SafeBrowsingDatabaseManager; |
18 class SafeBrowsingPingManager; | |
19 class SafeBrowsingProtocolManager; | |
20 struct V4ProtocolConfig; | 18 struct V4ProtocolConfig; |
21 class TestSafeBrowsingDatabaseManager; | 19 class TestSafeBrowsingDatabaseManager; |
22 class TestSafeBrowsingUIManager; | 20 class TestSafeBrowsingUIManager; |
23 | 21 |
24 // TestSafeBrowsingService and its factory provides a flexible way to configure | 22 // TestSafeBrowsingService and its factory provides a flexible way to configure |
25 // customized safe browsing UI manager, database manager, protocol manager, | 23 // customized safe browsing UI manager, database manager, protocol manager, |
26 // and etc without the need of override SafeBrowsingService in tests over and | 24 // and etc without the need of override SafeBrowsingService in tests over and |
27 // over again. | 25 // over again. |
28 // | 26 // |
29 // How to configure TestSafeBrowsingService in browser tests set up? | 27 // How to configure TestSafeBrowsingService in browser tests set up? |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 protected: | 120 protected: |
123 ~TestSafeBrowsingUIManager() override; | 121 ~TestSafeBrowsingUIManager() override; |
124 std::list<std::string> details_; | 122 std::list<std::string> details_; |
125 | 123 |
126 DISALLOW_COPY_AND_ASSIGN(TestSafeBrowsingUIManager); | 124 DISALLOW_COPY_AND_ASSIGN(TestSafeBrowsingUIManager); |
127 }; | 125 }; |
128 | 126 |
129 } // namespace safe_browsing | 127 } // namespace safe_browsing |
130 | 128 |
131 #endif // CHROME_BROWSER_SAFE_BROWSING_TEST_SAFE_BROWSING_SERVICE_H_ | 129 #endif // CHROME_BROWSER_SAFE_BROWSING_TEST_SAFE_BROWSING_SERVICE_H_ |
OLD | NEW |