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

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

Issue 393983004: Move mojo/examples/html_viewer to mojo/services/html_viewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nuke 'examples' namespace Created 6 years, 5 months 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
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/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
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
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/webmimeregistry_impl.h ('k') | mojo/services/html_viewer/webstoragenamespace_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698