summaryrefslogtreecommitdiffstats
path: root/chrome/browser/save_file_manager.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-08 20:51:30 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-08 20:51:30 +0000
commit2314403e94e659d586475e59975e9d84d87cbcd3 (patch)
treeb6abf72ec953e61297307a62ad67517c273bdddb /chrome/browser/save_file_manager.h
parente9fe92b3357e9010d14dcf628fe3dd7dad830a20 (diff)
downloadchromium_src-2314403e94e659d586475e59975e9d84d87cbcd3.zip
chromium_src-2314403e94e659d586475e59975e9d84d87cbcd3.tar.gz
chromium_src-2314403e94e659d586475e59975e9d84d87cbcd3.tar.bz2
Replace all instances of <hash_map> 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
Diffstat (limited to 'chrome/browser/save_file_manager.h')
-rw-r--r--chrome/browser/save_file_manager.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/chrome/browser/save_file_manager.h b/chrome/browser/save_file_manager.h
index 23631e0..19630dc 100644
--- a/chrome/browser/save_file_manager.h
+++ b/chrome/browser/save_file_manager.h
@@ -58,11 +58,10 @@
#ifndef CHROME_BROWSER_SAVE_FILE_MANAGER_H__
#define CHROME_BROWSER_SAVE_FILE_MANAGER_H__
-#include <hash_map>
-#include <hash_set>
#include <utility>
#include "base/basictypes.h"
+#include "base/hash_tables.h"
#include "base/ref_counted.h"
#include "base/thread.h"
#include "chrome/browser/save_types.h"
@@ -222,7 +221,7 @@ class SaveFileManager
int next_id_;
// A map of all saving jobs by using save id.
- typedef stdext::hash_map<int, SaveFile*> SaveFileMap;
+ typedef base::hash_map<int, SaveFile*> SaveFileMap;
SaveFileMap save_file_map_;
// Message loop that the SavePackages live on.
@@ -240,7 +239,7 @@ class SaveFileManager
// Tracks which SavePackage to send data to, called only on UI thread.
// SavePackageMap maps save IDs to their SavePackage.
- typedef stdext::hash_map<int, SavePackage*> SavePackageMap;
+ typedef base::hash_map<int, SavePackage*> SavePackageMap;
SavePackageMap packages_;
// There is a gap between after calling SaveURL() and before calling
@@ -253,12 +252,11 @@ class SaveFileManager
// use a hashmap to map the tab id (we actually use render_process_id) to the
// hashmap since it is possible to save same URL in different tab at
// same time.
- typedef stdext::hash_map<std::wstring, SavePackage*> StartingRequestsMap;
- typedef stdext::hash_map<int, StartingRequestsMap> TabToStartingRequestsMap;
+ typedef base::hash_map<std::wstring, SavePackage*> StartingRequestsMap;
+ typedef base::hash_map<int, StartingRequestsMap> TabToStartingRequestsMap;
TabToStartingRequestsMap tab_starting_requests_;
DISALLOW_EVIL_CONSTRUCTORS(SaveFileManager);
};
#endif // CHROME_BROWSER_SAVE_FILE_MANAGER_H__
-