diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 00:59:11 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-04 00:59:11 +0000 |
commit | f13b4acdd4699cd35d85dc742dc5719ed7755fc2 (patch) | |
tree | 1bb0abf952e13e698b8adee87d1f1cbcc2aeb3fc /chrome/browser/profile.h | |
parent | 9e51af9018550b6b23802f66469310f5d1790ab9 (diff) | |
download | chromium_src-f13b4acdd4699cd35d85dc742dc5719ed7755fc2.zip chromium_src-f13b4acdd4699cd35d85dc742dc5719ed7755fc2.tar.gz chromium_src-f13b4acdd4699cd35d85dc742dc5719ed7755fc2.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r-- | chrome/browser/profile.h | 13 |
1 files changed, 13 insertions, 0 deletions
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<Profile*> { + size_t operator()(Profile* const& p) const { + return std::tr1::hash<long>()(reinterpret_cast<long>(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. |