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

Side by Side Diff: net/base/platform_mime_util_nacl.cc

Issue 188873004: Compile src/net for PNaCl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "net/base/platform_mime_util.h"
6
7 #include <string>
8
9 #include "base/logging.h"
10 #include "build/build_config.h"
11
12 namespace net {
13
14 bool PlatformMimeUtil::GetPlatformMimeTypeFromExtension(
15 const base::FilePath::StringType& ext, std::string* result) const {
16 NOTIMPLEMENTED();
17 return false;
18 }
19
20 bool PlatformMimeUtil::GetPreferredExtensionForMimeType(
21 const std::string& mime_type, base::FilePath::StringType* ext) const {
22 return false;
23 }
24
25 void PlatformMimeUtil::GetPlatformExtensionsForMimeType(
26 const std::string& mime_type,
27 base::hash_set<base::FilePath::StringType>* extensions) const {
28 base::FilePath::StringType ext;
29 if (GetPreferredExtensionForMimeType(mime_type, &ext))
30 extensions->insert(ext);
31 }
32
33 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698