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

Side by Side Diff: mojo/services/html_viewer/webmimeregistry_impl.cc

Issue 808553007: Move HTMLViewer out of mojo namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge mistake in test Created 6 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/webmimeregistry_impl.h ('k') | mojo/services/html_viewer/websockethandle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698