From 2314403e94e659d586475e59975e9d84d87cbcd3 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Mon, 8 Sep 2008 20:51:30 +0000 Subject: Replace all instances of with a "base/hash_tabe.h", which does the right thing based on whatever platform we're compiling for, along with changing the hardcoded "stdext::", which is a MSVC++ism to use base::hash_{map,set}. B=1869 Review URL: http://codereview.chromium.org/1629 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1862 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/plugin/plugin_channel_base.cc | 5 ++--- chrome/plugin/plugin_channel_base.h | 5 ++--- chrome/plugin/webplugin_proxy.h | 6 ++---- 3 files changed, 6 insertions(+), 10 deletions(-) (limited to 'chrome/plugin') diff --git a/chrome/plugin/plugin_channel_base.cc b/chrome/plugin/plugin_channel_base.cc index 49a91fe..c44c52e 100644 --- a/chrome/plugin/plugin_channel_base.cc +++ b/chrome/plugin/plugin_channel_base.cc @@ -2,15 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include #include #include "chrome/plugin/plugin_channel_base.h" +#include "base/hash_tables.h" #include "chrome/common/ipc_sync_message.h" #include "chrome/plugin/plugin_process.h" -typedef stdext::hash_map > +typedef base::hash_map > PluginChannelMap; static PluginChannelMap g_plugin_channels_; @@ -191,4 +191,3 @@ void PluginChannelBase::OnChannelError() { void PluginChannelBase::SendUnblockingOnlyDuringDispatch() { send_unblocking_only_during_dispatch_ = true; } - diff --git a/chrome/plugin/plugin_channel_base.h b/chrome/plugin/plugin_channel_base.h index 317f0a6..dd70cba 100644 --- a/chrome/plugin/plugin_channel_base.h +++ b/chrome/plugin/plugin_channel_base.h @@ -5,10 +5,10 @@ #ifndef CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ #define CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ -#include #include #include "base/basictypes.h" +#include "base/hash_tables.h" #include "base/message_loop.h" #include "base/ref_counted.h" #include "base/scoped_ptr.h" @@ -97,7 +97,7 @@ class PluginChannelBase : public IPC::Channel::Listener, // Keep track of all the registered NPObjects proxies/stubs so that when the // channel is closed we can inform them. - typedef stdext::hash_map ListenerMap; + typedef base::hash_map ListenerMap; ListenerMap npobject_listeners_; // Used to implement message routing functionality to WebPlugin[Delegate] @@ -117,4 +117,3 @@ class PluginChannelBase : public IPC::Channel::Listener, }; #endif // CHROME_WEBKIT_GLUE_PLUGIN_CHANNEL_BASE_H__ - diff --git a/chrome/plugin/webplugin_proxy.h b/chrome/plugin/webplugin_proxy.h index af1e4b6..5bad3f9 100644 --- a/chrome/plugin/webplugin_proxy.h +++ b/chrome/plugin/webplugin_proxy.h @@ -5,8 +5,7 @@ #ifndef CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ -#include - +#include "base/hash_tables.h" #include "base/ref_counted.h" #include "base/scoped_handle.h" #include "chrome/common/ipc_message.h" @@ -77,7 +76,7 @@ class WebPluginProxy : public WebPlugin { private: bool Send(IPC::Message* msg); - typedef stdext::hash_map ResourceClientMap; + typedef base::hash_map ResourceClientMap; ResourceClientMap resource_clients_; scoped_refptr channel_; @@ -92,4 +91,3 @@ class WebPluginProxy : public WebPlugin { }; #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ - -- cgit v1.1