OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/services/html_viewer/webmimeregistry_impl.h" | 5 #include "mojo/services/html_viewer/webmimeregistry_impl.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "media/filters/stream_parser_factory.h" | 11 #include "media/filters/stream_parser_factory.h" |
12 #include "net/base/mime_util.h" | 12 #include "net/base/mime_util.h" |
13 #include "third_party/WebKit/public/platform/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
14 | 14 |
15 namespace mojo { | 15 namespace html_viewer { |
16 namespace { | 16 namespace { |
17 | 17 |
18 std::string ToASCIIOrEmpty(const blink::WebString& string) { | 18 std::string ToASCIIOrEmpty(const blink::WebString& string) { |
19 return base::IsStringASCII(string) ? base::UTF16ToASCII(string) | 19 return base::IsStringASCII(string) ? base::UTF16ToASCII(string) |
20 : std::string(); | 20 : std::string(); |
21 } | 21 } |
22 | 22 |
23 } // namespace | 23 } // namespace |
24 | 24 |
25 blink::WebMimeRegistry::SupportsType WebMimeRegistryImpl::supportsMIMEType( | 25 blink::WebMimeRegistry::SupportsType WebMimeRegistryImpl::supportsMIMEType( |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 NOTIMPLEMENTED(); | 127 NOTIMPLEMENTED(); |
128 return blink::WebString(); | 128 return blink::WebString(); |
129 } | 129 } |
130 | 130 |
131 blink::WebString WebMimeRegistryImpl::mimeTypeFromFile( | 131 blink::WebString WebMimeRegistryImpl::mimeTypeFromFile( |
132 const blink::WebString& file_path) { | 132 const blink::WebString& file_path) { |
133 NOTIMPLEMENTED(); | 133 NOTIMPLEMENTED(); |
134 return blink::WebString(); | 134 return blink::WebString(); |
135 } | 135 } |
136 | 136 |
137 } // namespace mojo | 137 } // namespace html_viewer |
OLD | NEW |