OLD | NEW |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #ifdef WIN32 | 48 #ifdef WIN32 |
49 typedef HANDLE FileHandle; | 49 typedef HANDLE FileHandle; |
50 #else | 50 #else |
51 typedef int FileHandle; | 51 typedef int FileHandle; |
52 #endif | 52 #endif |
53 virtual bool getFileInfo(const WebString& path, WebFileInfo& result) { retur
n false; } | 53 virtual bool getFileInfo(const WebString& path, WebFileInfo& result) { retur
n false; } |
54 virtual WebString directoryName(const WebString& path) { return WebString()
; } | 54 virtual WebString directoryName(const WebString& path) { return WebString()
; } |
55 virtual WebString baseName(const WebString& path) { return WebString(); } | 55 virtual WebString baseName(const WebString& path) { return WebString(); } |
56 virtual bool isDirectory(const WebString& path) { return false; } | 56 virtual bool isDirectory(const WebString& path) { return false; } |
57 virtual WebURL filePathToURL(const WebString& path) { return WebURL(); } | 57 virtual WebURL filePathToURL(const WebString& path) { return WebURL(); } |
58 virtual FileHandle openFile(const WebString& path, int mode) { return FileH
andle(); } | |
59 // Should set the FileHandle to a invalid value if the file is closed succes
sfully. | |
60 virtual void closeFile(FileHandle&) { } | |
61 virtual int readFromFile(FileHandle, char* data, int length) { return 0; } | |
62 | 58 |
63 protected: | 59 protected: |
64 ~WebFileUtilities() { } | 60 ~WebFileUtilities() { } |
65 }; | 61 }; |
66 | 62 |
67 } // namespace WebKit | 63 } // namespace WebKit |
68 | 64 |
69 #endif | 65 #endif |
OLD | NEW |