class URLRequestContextGetter;
} // namespace net
-#if defined(COMPILER_GCC)
-// Allows us to use URLFetchers in a hash_map with gcc (MSVC is okay without
-// specifying this).
-namespace BASE_HASH_NAMESPACE {
-template<>
-struct hash<const net::URLFetcher*> {
- size_t operator()(const net::URLFetcher* fetcher) const {
- return reinterpret_cast<size_t>(fetcher);
- }
-};
-}
-#endif
-
class SBProtocolManagerFactory;
class SafeBrowsingProtocolManagerDelegate;
typedef base::Callback<void(const std::vector<SBFullHashResult>&,
const base::TimeDelta&)> FullHashCallback;
- virtual ~SafeBrowsingProtocolManager();
+ ~SafeBrowsingProtocolManager() override;
// Makes the passed |factory| the factory used to instantiate
// a SafeBrowsingService. Useful for tests.
virtual void Initialize();
// net::URLFetcherDelegate interface.
- virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
+ void OnURLFetchComplete(const net::URLFetcher* source) override;
// Retrieve the full hash for a set of prefixes, and invoke the callback
// argument when the results are retrieved. The callback may be invoked