OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ |
7 | 7 |
8 // A class that implements Chrome's interface with the SafeBrowsing protocol. | 8 // A class that implements Chrome's interface with the SafeBrowsing protocol. |
9 // See https://developers.google.com/safe-browsing/developers_guide_v2 for | 9 // See https://developers.google.com/safe-browsing/developers_guide_v2 for |
10 // protocol details. | 10 // protocol details. |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include <set> | 21 #include <set> |
22 #include <string> | 22 #include <string> |
23 #include <vector> | 23 #include <vector> |
24 | 24 |
25 #include "base/containers/hash_tables.h" | 25 #include "base/containers/hash_tables.h" |
26 #include "base/gtest_prod_util.h" | 26 #include "base/gtest_prod_util.h" |
27 #include "base/macros.h" | 27 #include "base/macros.h" |
28 #include "base/time/time.h" | 28 #include "base/time/time.h" |
29 #include "base/timer/timer.h" | 29 #include "base/timer/timer.h" |
30 #include "chrome/browser/safe_browsing/chunk_range.h" | 30 #include "chrome/browser/safe_browsing/chunk_range.h" |
31 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" | |
32 #include "chrome/browser/safe_browsing/protocol_parser.h" | 31 #include "chrome/browser/safe_browsing/protocol_parser.h" |
33 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 32 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
34 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 33 #include "components/safe_browsing_db/safe_browsing_prefs.h" |
35 #include "components/safe_browsing_db/safebrowsing.pb.h" | 34 #include "components/safe_browsing_db/safebrowsing.pb.h" |
36 #include "components/safe_browsing_db/util.h" | 35 #include "components/safe_browsing_db/util.h" |
37 #include "net/url_request/url_fetcher_delegate.h" | 36 #include "net/url_request/url_fetcher_delegate.h" |
38 #include "net/url_request/url_request_status.h" | 37 #include "net/url_request/url_request_status.h" |
39 #include "url/gurl.h" | 38 #include "url/gurl.h" |
40 | 39 |
41 namespace net { | 40 namespace net { |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 AddChunksCallback callback) = 0; | 440 AddChunksCallback callback) = 0; |
442 | 441 |
443 // Delete chunks from the database. | 442 // Delete chunks from the database. |
444 virtual void DeleteChunks( | 443 virtual void DeleteChunks( |
445 std::unique_ptr<std::vector<SBChunkDelete>> chunk_deletes) = 0; | 444 std::unique_ptr<std::vector<SBChunkDelete>> chunk_deletes) = 0; |
446 }; | 445 }; |
447 | 446 |
448 } // namespace safe_browsing | 447 } // namespace safe_browsing |
449 | 448 |
450 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ | 449 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ |
OLD | NEW |