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 12 matching lines...) Expand all Loading... |
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_parser.h" | 31 #include "chrome/browser/safe_browsing/protocol_parser.h" |
32 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 32 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
33 #include "components/safe_browsing_db/safe_browsing_prefs.h" | 33 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
34 #include "components/safe_browsing_db/safebrowsing.pb.h" | 34 #include "components/safe_browsing_db/safebrowsing.pb.h" |
35 #include "components/safe_browsing_db/util.h" | 35 #include "components/safe_browsing_db/util.h" |
36 #include "net/url_request/url_fetcher_delegate.h" | 36 #include "net/url_request/url_fetcher_delegate.h" |
37 #include "net/url_request/url_request_status.h" | 37 #include "net/url_request/url_request_status.h" |
38 #include "url/gurl.h" | 38 #include "url/gurl.h" |
39 | 39 |
40 namespace net { | 40 namespace net { |
41 class URLFetcher; | 41 class URLFetcher; |
42 class URLRequestContextGetter; | 42 class URLRequestContextGetter; |
43 } // namespace net | 43 } // namespace net |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 AddChunksCallback callback) = 0; | 440 AddChunksCallback callback) = 0; |
441 | 441 |
442 // Delete chunks from the database. | 442 // Delete chunks from the database. |
443 virtual void DeleteChunks( | 443 virtual void DeleteChunks( |
444 std::unique_ptr<std::vector<SBChunkDelete>> chunk_deletes) = 0; | 444 std::unique_ptr<std::vector<SBChunkDelete>> chunk_deletes) = 0; |
445 }; | 445 }; |
446 | 446 |
447 } // namespace safe_browsing | 447 } // namespace safe_browsing |
448 | 448 |
449 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ | 449 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ |
OLD | NEW |