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

Side by Side Diff: webkit/glue/simple_webmimeregistry_impl.cc

Issue 8787003: Update these includes to use the new header locations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/simple_webmimeregistry_impl.h ('k') | webkit/glue/web_io_operators.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/glue/simple_webmimeregistry_impl.h" 5 #include "webkit/glue/simple_webmimeregistry_impl.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "net/base/mime_util.h" 10 #include "net/base/mime_util.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
12 #include "webkit/glue/webkit_glue.h" 12 #include "webkit/glue/webkit_glue.h"
13 13
14 using WebKit::WebString; 14 using WebKit::WebString;
15 using WebKit::WebMimeRegistry; 15 using WebKit::WebMimeRegistry;
16 16
17 namespace { 17 namespace {
18 18
19 // Convert a WebString to ASCII, falling back on an empty string in the case 19 // Convert a WebString to ASCII, falling back on an empty string in the case
20 // of a non-ASCII string. 20 // of a non-ASCII string.
21 std::string ToASCIIOrEmpty(const WebString& string) { 21 std::string ToASCIIOrEmpty(const WebString& string) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 WebString SimpleWebMimeRegistryImpl::preferredExtensionForMIMEType( 118 WebString SimpleWebMimeRegistryImpl::preferredExtensionForMIMEType(
119 const WebString& mime_type) { 119 const WebString& mime_type) {
120 FilePath::StringType file_extension; 120 FilePath::StringType file_extension;
121 net::GetPreferredExtensionForMimeType(ToASCIIOrEmpty(mime_type), 121 net::GetPreferredExtensionForMimeType(ToASCIIOrEmpty(mime_type),
122 &file_extension); 122 &file_extension);
123 return FilePathStringToWebString(file_extension); 123 return FilePathStringToWebString(file_extension);
124 } 124 }
125 125
126 } // namespace webkit_glue 126 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/simple_webmimeregistry_impl.h ('k') | webkit/glue/web_io_operators.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698