diff options
author | paul@chromium.org <paul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-06 01:57:39 +0000 |
---|---|---|
committer | paul@chromium.org <paul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-06 01:57:39 +0000 |
commit | d8cf7ab0d29dc10a0c4f262707f25dcc53cb68ea (patch) | |
tree | 8b09fa5e99813052145d7fed44b993232e1f058d /chrome/browser/safe_browsing | |
parent | 7f874dec33a8b047c65c1527fd8205e5d4ab63b1 (diff) | |
download | chromium_src-d8cf7ab0d29dc10a0c4f262707f25dcc53cb68ea.zip chromium_src-d8cf7ab0d29dc10a0c4f262707f25dcc53cb68ea.tar.gz chromium_src-d8cf7ab0d29dc10a0c4f262707f25dcc53cb68ea.tar.bz2 |
Port SafeBrowsingProtocolManager to Mac and linux.
Review URL: http://codereview.chromium.org/20119
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing')
-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: |