diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-14 01:20:41 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-14 01:20:41 +0000 |
commit | bae0ea1f95c5c3a02761d942c0802ec877c1a106 (patch) | |
tree | 456d3b2eb7cc4fc497870385223c88312db8a914 /chrome/browser/renderer_host | |
parent | 8a5deb2ef0a4cc84b06a3466b32e94375110106c (diff) | |
download | chromium_src-bae0ea1f95c5c3a02761d942c0802ec877c1a106.zip chromium_src-bae0ea1f95c5c3a02761d942c0802ec877c1a106.tar.gz chromium_src-bae0ea1f95c5c3a02761d942c0802ec877c1a106.tar.bz2 |
Change mime type utils to operate on platform-specific string types for filenames/file extensions.
Review URL: http://codereview.chromium.org/21327
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r-- | chrome/browser/renderer_host/resource_message_filter.cc | 6 | ||||
-rw-r--r-- | chrome/browser/renderer_host/resource_message_filter.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/renderer_host/resource_message_filter.cc b/chrome/browser/renderer_host/resource_message_filter.cc index 022a655..e7634dc 100644 --- a/chrome/browser/renderer_host/resource_message_filter.cc +++ b/chrome/browser/renderer_host/resource_message_filter.cc @@ -545,17 +545,17 @@ void ResourceMessageFilter::OnGetRootWindowRect(gfx::NativeViewId window_id, #endif // OS_WIN void ResourceMessageFilter::OnGetMimeTypeFromExtension( - const std::wstring& ext, std::string* mime_type) { + const FilePath::StringType& ext, std::string* mime_type) { net::GetMimeTypeFromExtension(ext, mime_type); } void ResourceMessageFilter::OnGetMimeTypeFromFile( - const std::wstring& file_path, std::string* mime_type) { + const FilePath& file_path, std::string* mime_type) { net::GetMimeTypeFromFile(file_path, mime_type); } void ResourceMessageFilter::OnGetPreferredExtensionForMimeType( - const std::string& mime_type, std::wstring* ext) { + const std::string& mime_type, FilePath::StringType* ext) { net::GetPreferredExtensionForMimeType(mime_type, ext); } diff --git a/chrome/browser/renderer_host/resource_message_filter.h b/chrome/browser/renderer_host/resource_message_filter.h index c5b25f9..4133353 100644 --- a/chrome/browser/renderer_host/resource_message_filter.h +++ b/chrome/browser/renderer_host/resource_message_filter.h @@ -83,7 +83,7 @@ class ResourceMessageFilter : public IPC::ChannelProxy::MessageFilter, int render_process_host_id() const { return render_process_host_id_;} base::ProcessHandle renderer_handle() const { return render_handle_;} - + // NotificationObserver implementation. virtual void Observe(NotificationType type, const NotificationSource& source, @@ -154,12 +154,12 @@ class ResourceMessageFilter : public IPC::ChannelProxy::MessageFilter, void OnGetWindowRect(gfx::NativeViewId window, gfx::Rect *rect); void OnGetRootWindowRect(gfx::NativeViewId window, gfx::Rect *rect); #endif - void OnGetMimeTypeFromExtension(const std::wstring& ext, + void OnGetMimeTypeFromExtension(const FilePath::StringType& ext, std::string* mime_type); - void OnGetMimeTypeFromFile(const std::wstring& file_path, + void OnGetMimeTypeFromFile(const FilePath& file_path, std::string* mime_type); void OnGetPreferredExtensionForMimeType(const std::string& mime_type, - std::wstring* ext); + FilePath::StringType* ext); void OnGetCPBrowsingContext(uint32* context); void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, base::SharedMemoryHandle* browser_handle); |