| 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/examples/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 "net/base/mime_util.h" | 11 #include "net/base/mime_util.h" |
| 12 #include "third_party/WebKit/public/platform/WebString.h" | 12 #include "third_party/WebKit/public/platform/WebString.h" |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 namespace examples { | |
| 16 namespace { | 15 namespace { |
| 17 | 16 |
| 18 std::string ToASCIIOrEmpty(const blink::WebString& string) { | 17 std::string ToASCIIOrEmpty(const blink::WebString& string) { |
| 19 return base::IsStringASCII(string) ? base::UTF16ToASCII(string) | 18 return base::IsStringASCII(string) ? base::UTF16ToASCII(string) |
| 20 : std::string(); | 19 : std::string(); |
| 21 } | 20 } |
| 22 | 21 |
| 23 } // namespace | 22 } // namespace |
| 24 | 23 |
| 25 blink::WebMimeRegistry::SupportsType WebMimeRegistryImpl::supportsMIMEType( | 24 blink::WebMimeRegistry::SupportsType WebMimeRegistryImpl::supportsMIMEType( |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 NOTIMPLEMENTED(); | 85 NOTIMPLEMENTED(); |
| 87 return blink::WebString(); | 86 return blink::WebString(); |
| 88 } | 87 } |
| 89 | 88 |
| 90 blink::WebString WebMimeRegistryImpl::mimeTypeFromFile( | 89 blink::WebString WebMimeRegistryImpl::mimeTypeFromFile( |
| 91 const blink::WebString& file_path) { | 90 const blink::WebString& file_path) { |
| 92 NOTIMPLEMENTED(); | 91 NOTIMPLEMENTED(); |
| 93 return blink::WebString(); | 92 return blink::WebString(); |
| 94 } | 93 } |
| 95 | 94 |
| 96 } // namespace examples | |
| 97 } // namespace mojo | 95 } // namespace mojo |
| OLD | NEW |