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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/DOMFilePath.h

Issue 2297043002: Web expose FileSystemFileEntry, FileSystemDirectoryEntry and friends (Closed)
Patch Set: Rebased Created 4 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef DOMFilePath_h 31 #ifndef DOMFilePath_h
32 #define DOMFilePath_h 32 #define DOMFilePath_h
33 33
34 #include "wtf/Allocator.h" 34 #include "wtf/Allocator.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 // DOMFileSystem path utilities. All methods in this class are static. 39 // FileSystem path utilities. All methods in this class are static.
40 class DOMFilePath { 40 class DOMFilePath {
41 STATIC_ONLY(DOMFilePath); 41 STATIC_ONLY(DOMFilePath);
42 42
43 public: 43 public:
44 static const char separator; 44 static const char separator;
45 static const char root[]; 45 static const char root[];
46 46
47 // Returns the name part from the given path. 47 // Returns the name part from the given path.
48 static String getName(const String& path); 48 static String getName(const String& path);
49 49
(...skipping 27 matching lines...) Expand all
77 // Checks if the given path follows the FileSystem API naming restrictions. 77 // Checks if the given path follows the FileSystem API naming restrictions.
78 static bool isValidPath(const String& path); 78 static bool isValidPath(const String& path);
79 79
80 // Checks if the given name follows the FileSystem API naming restrictions. 80 // Checks if the given name follows the FileSystem API naming restrictions.
81 static bool isValidName(const String& name); 81 static bool isValidName(const String& name);
82 }; 82 };
83 83
84 } // namespace blink 84 } // namespace blink
85 85
86 #endif // DOMFilePath_h 86 #endif // DOMFilePath_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/filesystem/BUILD.gn ('k') | third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698