OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | |
3 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. | |
4 * | |
5 * Redistribution and use in source and binary forms, with or without | |
6 * modification, are permitted provided that the following conditions | |
7 * are met: | |
8 * | |
9 * 1. Redistributions of source code must retain the above copyright | |
10 * notice, this list of conditions and the following disclaimer. | |
11 * 2. Redistributions in binary form must reproduce the above copyright | |
12 * notice, this list of conditions and the following disclaimer in the | |
13 * documentation and/or other materials provided with the distribution. | |
14 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of | |
15 * its contributors may be used to endorse or promote products derived | |
16 * from this software without specific prior written permission. | |
17 * | |
18 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY | |
19 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
21 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY | |
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
28 */ | |
29 | |
30 #include "config.h" | |
31 #include <windows.h> | |
32 #include "FileSystem.h" | |
33 | |
34 #include "CString.h" | |
35 #include "NotImplemented.h" | |
36 #include "PlatformString.h" | |
37 | |
38 #include <shlwapi.h> | |
39 | |
40 namespace WebCore { | |
41 | |
42 // Don't include any of the file system code, since the renderer can't do | |
43 // file system operations from sandbox. | |
44 // These methods are hot referenced, so no definition is needed. | |
45 | |
46 String pathGetFileName(const String& path) | |
47 { | |
48 return String(::PathFindFileName(String(path).charactersWithNullTermination(
))); | |
49 } | |
50 | |
51 String directoryName(const String& path) | |
52 { | |
53 notImplemented(); | |
54 return String(); | |
55 } | |
56 | |
57 // Used by Page::userStyleSheet(). | |
58 // The custom user stylesheets should be implemented more generically, in | |
59 // order to support other protocols, like http: and data: | |
60 bool getFileModificationTime(const String& /*path*/, time_t& /*result*/) | |
61 { | |
62 notImplemented(); | |
63 return false; | |
64 } | |
65 | |
66 bool fileExists(const String& path) | |
67 { | |
68 notImplemented(); | |
69 return false; | |
70 } | |
71 | |
72 bool getFileSize(const String&, long long& result) | |
73 { | |
74 notImplemented(); | |
75 return false; | |
76 } | |
77 | |
78 // delteFile() and deleteEmptyDirectory() are used by | |
79 // FormData::removeGeneratedFilesIfNeeded() for uploading bundles: | |
80 // http://trac.webkit.org/changeset/32666 | |
81 // This approach will need refactoring to isolate file system operations | |
82 // between browser/renderer | |
83 | |
84 bool deleteFile(const String& /*path*/) | |
85 { | |
86 notImplemented(); | |
87 return false; | |
88 } | |
89 | |
90 bool deleteEmptyDirectory(const String& /*path*/) | |
91 { | |
92 notImplemented(); | |
93 return false; | |
94 } | |
95 | |
96 bool unloadModule(PlatformModule module) | |
97 { | |
98 notImplemented(); | |
99 return false; | |
100 } | |
101 | |
102 } // namespace WebCore | |
OLD | NEW |