diff options
Diffstat (limited to 'chrome/browser/safe_browsing/protocol_manager.h')
-rw-r--r-- | chrome/browser/safe_browsing/protocol_manager.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/protocol_manager.h b/chrome/browser/safe_browsing/protocol_manager.h index 988ab3a..55c430a 100644 --- a/chrome/browser/safe_browsing/protocol_manager.h +++ b/chrome/browser/safe_browsing/protocol_manager.h @@ -29,6 +29,18 @@ class MessageLoop; class Task; class Timer; +#if defined(COMPILER_GCC) +// Allows us to use URLFetchers in a hash_map with gcc (MSVC is okay without +// specifying this). +namespace __gnu_cxx { +template<> +struct hash<const URLFetcher*> { + size_t operator()(const URLFetcher* fetcher) const { + return reinterpret_cast<size_t>(fetcher); + } +}; +} +#endif class SafeBrowsingProtocolManager : public URLFetcher::Delegate { // Testing friends: |