summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/save_file_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/download/save_file_manager.h')
-rw-r--r--chrome/browser/download/save_file_manager.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/download/save_file_manager.h b/chrome/browser/download/save_file_manager.h
index cf29e1c..4df5abf 100644
--- a/chrome/browser/download/save_file_manager.h
+++ b/chrome/browser/download/save_file_manager.h
@@ -93,8 +93,8 @@ class SaveFileManager
// Save the specified URL. Called on the UI thread and forwarded to the
// ResourceDispatcherHost on the IO thread.
- void SaveURL(const std::wstring& url,
- const std::wstring& referrer,
+ void SaveURL(const GURL& url,
+ const GURL& referrer,
int render_process_host_id,
int render_view_id,
SaveFileCreateInfo::SaveFileSource save_source,
@@ -105,7 +105,7 @@ class SaveFileManager
// Notifications sent from the IO thread and run on the file thread:
void StartSave(SaveFileCreateInfo* info);
void UpdateSaveProgress(int save_id, net::IOBuffer* data, int size);
- void SaveFinished(int save_id, std::wstring save_url,
+ void SaveFinished(int save_id, GURL save_url,
int render_process_id, bool is_success);
// Notifications sent from the UI thread and run on the file thread.
@@ -114,7 +114,7 @@ class SaveFileManager
// Called on the UI thread to remove a save package from SaveFileManager's
// tracking map.
- void RemoveSaveFile(int save_id, const std::wstring& save_url,
+ void RemoveSaveFile(int save_id, const GURL& save_url,
SavePackage* package);
// Handler for shell operations sent from the UI to the file thread.
@@ -128,7 +128,7 @@ class SaveFileManager
// Runs on file thread to save a file by copying from file system when
// original url is using file scheme.
- void SaveLocalFile(const std::wstring& original_file_url,
+ void SaveLocalFile(const GURL& original_file_url,
int save_id,
int render_process_id);
@@ -161,11 +161,11 @@ class SaveFileManager
// Register a starting request. Associate the save URL with a
// SavePackage for further matching.
- void RegisterStartingRequest(const std::wstring& save_url,
+ void RegisterStartingRequest(const GURL& save_url,
SavePackage* save_package);
// Unregister a start request according save URL, disassociate
// the save URL and SavePackage.
- SavePackage* UnregisterStartingRequest(const std::wstring& save_url,
+ SavePackage* UnregisterStartingRequest(const GURL& save_url,
int tab_id);
// Look up the SavePackage according to save id.
@@ -193,7 +193,7 @@ class SaveFileManager
void OnSaveFinished(int save_id, int64 bytes_so_far, bool is_success);
// For those requests that do not have valid save id, use
// map:(url, SavePackage) to find the request and remove it.
- void OnErrorFinished(std::wstring save_url, int tab_id);
+ void OnErrorFinished(GURL save_url, int tab_id);
// Handler for a notification sent to the UI thread.
// The user has requested a cancel in the UI thread, so send a cancel request
// to stop the network requests in net IO thread.
@@ -255,7 +255,7 @@ 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 base::hash_map<std::wstring, SavePackage*> StartingRequestsMap;
+ typedef base::hash_map<std::string, SavePackage*> StartingRequestsMap;
typedef base::hash_map<int, StartingRequestsMap> TabToStartingRequestsMap;
TabToStartingRequestsMap tab_starting_requests_;