Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1720)

Unified Diff: content/child/npapi/np_channel_base.h

Issue 612323010: Align base::hash_map with C++11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try a different tack for C++ insanity Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/npapi/np_channel_base.h
diff --git a/content/child/npapi/np_channel_base.h b/content/child/npapi/np_channel_base.h
index 0f6e11fe36678270421acce2356bcf99a7b8e4d9..610eb233d4b6ec7b04ee91eea67161f8a3a1ab7b 100644
--- a/content/child/npapi/np_channel_base.h
+++ b/content/child/npapi/np_channel_base.h
@@ -21,35 +21,6 @@ namespace base {
class MessageLoopProxy;
}
-#if defined(COMPILER_GCC)
-namespace BASE_HASH_NAMESPACE {
-
-template<>
-struct hash<NPObject*> {
- std::size_t operator()(NPObject* const& ptr) const {
- return hash<size_t>()(reinterpret_cast<size_t>(ptr));
- }
-};
-
-template<>
-struct hash<struct _NPP*> {
- std::size_t operator()(struct _NPP* const& ptr) const {
- return hash<size_t>()(reinterpret_cast<size_t>(ptr));
- }
-};
-
-} // namespace __gnu_cxx
-#elif defined(COMPILER_MSVC)
-namespace stdext {
-
-template<>
-inline size_t hash_value(NPObject* const& ptr) {
- return hash_value(reinterpret_cast<size_t>(ptr));
-}
-
-} // namespace stdext
-#endif // COMPILER
-
namespace content {
// Encapsulates an IPC channel between a renderer and another process. Used to

Powered by Google App Engine
This is Rietveld 408576698