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 14 matching lines...) Expand all Loading... |
25 #include "base/macros.h" | 25 #include "base/macros.h" |
26 #include "base/memory/scoped_ptr.h" | 26 #include "base/memory/scoped_ptr.h" |
27 #include "base/threading/non_thread_safe.h" | 27 #include "base/threading/non_thread_safe.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" | 31 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" |
32 #include "chrome/browser/safe_browsing/protocol_parser.h" | 32 #include "chrome/browser/safe_browsing/protocol_parser.h" |
33 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 33 #include "chrome/browser/safe_browsing/safe_browsing_util.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 "net/url_request/url_fetcher_delegate.h" | 36 #include "net/url_request/url_fetcher_delegate.h" |
36 #include "net/url_request/url_request_status.h" | 37 #include "net/url_request/url_request_status.h" |
37 #include "url/gurl.h" | 38 #include "url/gurl.h" |
38 | 39 |
39 namespace net { | 40 namespace net { |
40 class URLFetcher; | 41 class URLFetcher; |
41 class URLRequestContextGetter; | 42 class URLRequestContextGetter; |
42 } // namespace net | 43 } // namespace net |
43 | 44 |
44 namespace safe_browsing { | 45 namespace safe_browsing { |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 AddChunksCallback callback) = 0; | 437 AddChunksCallback callback) = 0; |
437 | 438 |
438 // Delete chunks from the database. | 439 // Delete chunks from the database. |
439 virtual void DeleteChunks( | 440 virtual void DeleteChunks( |
440 scoped_ptr<std::vector<SBChunkDelete> > chunk_deletes) = 0; | 441 scoped_ptr<std::vector<SBChunkDelete> > chunk_deletes) = 0; |
441 }; | 442 }; |
442 | 443 |
443 } // namespace safe_browsing | 444 } // namespace safe_browsing |
444 | 445 |
445 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ | 446 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ |
OLD | NEW |