From f13b4acdd4699cd35d85dc742dc5719ed7755fc2 Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Wed, 4 Feb 2009 00:59:11 +0000 Subject: Add site_instance, navigation_entry, browsing_instance, renderer_security_policy, and render_widget_helper to mac and linux builds. Adds a hash for Profile so it can be put into a hash table on gcc. Review URL: http://codereview.chromium.org/21021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9115 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/profile.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'chrome/browser/profile.h') diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index 754a97a..fdbfd61 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -364,6 +364,19 @@ class ProfileImpl : public Profile, DISALLOW_COPY_AND_ASSIGN(ProfileImpl); }; +#if defined(COMPILER_GCC) +namespace __gnu_cxx { + +template<> +struct hash { + size_t operator()(Profile* const& p) const { + return std::tr1::hash()(reinterpret_cast(p)); + } +}; + +} // namespace __gnu_cxx +#endif + // This struct is used to pass the spellchecker object through the notification // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the // notification service. -- cgit v1.1