| 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. |
| 11 // | 11 // |
| 12 // The SafeBrowsingProtocolManager handles formatting and making requests of, | 12 // The SafeBrowsingProtocolManager handles formatting and making requests of, |
| 13 // and handling responses from, Google's SafeBrowsing servers. This class uses | 13 // and handling responses from, Google's SafeBrowsing servers. This class uses |
| 14 // The SafeBrowsingProtocolParser class to do the actual parsing. | 14 // The SafeBrowsingProtocolParser class to do the actual parsing. |
| 15 | 15 |
| 16 #include <deque> | 16 #include <deque> |
| 17 #include <set> | 17 #include <set> |
| 18 #include <string> | 18 #include <string> |
| 19 #include <vector> | 19 #include <vector> |
| 20 | 20 |
| 21 #include "base/containers/hash_tables.h" |
| 21 #include "base/gtest_prod_util.h" | 22 #include "base/gtest_prod_util.h" |
| 22 #include "base/hash_tables.h" | |
| 23 #include "base/memory/scoped_ptr.h" | 23 #include "base/memory/scoped_ptr.h" |
| 24 #include "base/threading/non_thread_safe.h" | 24 #include "base/threading/non_thread_safe.h" |
| 25 #include "base/time.h" | 25 #include "base/time.h" |
| 26 #include "base/timer.h" | 26 #include "base/timer.h" |
| 27 #include "chrome/browser/safe_browsing/chunk_range.h" | 27 #include "chrome/browser/safe_browsing/chunk_range.h" |
| 28 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" |
| 28 #include "chrome/browser/safe_browsing/protocol_parser.h" | 29 #include "chrome/browser/safe_browsing/protocol_parser.h" |
| 29 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" | |
| 30 #include "chrome/browser/safe_browsing/safe_browsing_util.h" | 30 #include "chrome/browser/safe_browsing/safe_browsing_util.h" |
| 31 #include "googleurl/src/gurl.h" | 31 #include "googleurl/src/gurl.h" |
| 32 #include "net/url_request/url_fetcher_delegate.h" | 32 #include "net/url_request/url_fetcher_delegate.h" |
| 33 | 33 |
| 34 namespace net { | 34 namespace net { |
| 35 class URLFetcher; | 35 class URLFetcher; |
| 36 class URLRequestContextGetter; | 36 class URLRequestContextGetter; |
| 37 } // namespace net | 37 } // namespace net |
| 38 | 38 |
| 39 #if defined(COMPILER_GCC) | 39 #if defined(COMPILER_GCC) |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 // call at a later time. | 423 // call at a later time. |
| 424 virtual void AddChunks(const std::string& list, SBChunkList* chunks, | 424 virtual void AddChunks(const std::string& list, SBChunkList* chunks, |
| 425 AddChunksCallback callback) = 0; | 425 AddChunksCallback callback) = 0; |
| 426 | 426 |
| 427 // Delete chunks from the database. | 427 // Delete chunks from the database. |
| 428 virtual void DeleteChunks( | 428 virtual void DeleteChunks( |
| 429 std::vector<SBChunkDelete>* delete_chunks) = 0; | 429 std::vector<SBChunkDelete>* delete_chunks) = 0; |
| 430 }; | 430 }; |
| 431 | 431 |
| 432 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ | 432 #endif // CHROME_BROWSER_SAFE_BROWSING_PROTOCOL_MANAGER_H_ |
| OLD | NEW |