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

Side by Side Diff: ppapi/shared_impl/file_system_util.cc

Issue 26803004: PPAPI: Add PluginPrivateFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: overhaul Created 7 years, 1 month 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 2013 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 "ppapi/shared_impl/file_system_util.h"
6
7 #include "base/logging.h"
8
9 namespace ppapi {
10
11 std::string IsolatedFileSystemTypeToRootName(
12 PP_IsolatedFileSystemType_Private type) {
13 switch (type) {
14 case PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_INVALID:
teravest 2013/11/12 18:04:53 Why bother explicitly handling this case?
nhiroki 2013/11/14 11:34:39 It's just my preference ('default' could hide newl
15 break;
16 case PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_CRX:
17 return "crxfs";
18 case PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE:
19 return "pluginprivate";
20 }
21 NOTREACHED() << type;
22 return std::string();
23 }
24
25 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698