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 29 matching lines...) Expand all Loading... | |
40 class AsyncFileSystemCallbacks; | 40 class AsyncFileSystemCallbacks; |
41 class FileSystemClient; | 41 class FileSystemClient; |
42 class ScriptExecutionContext; | 42 class ScriptExecutionContext; |
43 | 43 |
44 // Base class of LocalFileSystem and WorkerLocalFileSystem. | 44 // Base class of LocalFileSystem and WorkerLocalFileSystem. |
45 class LocalFileSystemBase { | 45 class LocalFileSystemBase { |
46 WTF_MAKE_NONCOPYABLE(LocalFileSystemBase); | 46 WTF_MAKE_NONCOPYABLE(LocalFileSystemBase); |
47 public: | 47 public: |
48 virtual ~LocalFileSystemBase(); | 48 virtual ~LocalFileSystemBase(); |
49 | 49 |
50 // Does not create the new file system if it doesn't exist, just reads it if available. | 50 void resolveURL(ScriptExecutionContext*, KURL, PassOwnPtr<AsyncFileSystemCal lbacks>); |
abarth-chromium
2013/09/13 17:33:01
KURL -> const KURL& ?
nhiroki
2013/09/16 16:36:07
Done.
| |
51 void readFileSystem(ScriptExecutionContext*, FileSystemType, PassOwnPtr<Asyn cFileSystemCallbacks>); | |
52 | 51 |
53 void requestFileSystem(ScriptExecutionContext*, FileSystemType, long long si ze, PassOwnPtr<AsyncFileSystemCallbacks>); | 52 void requestFileSystem(ScriptExecutionContext*, FileSystemType, long long si ze, PassOwnPtr<AsyncFileSystemCallbacks>); |
54 | 53 |
55 void deleteFileSystem(ScriptExecutionContext*, FileSystemType, PassOwnPtr<As yncFileSystemCallbacks>); | 54 void deleteFileSystem(ScriptExecutionContext*, FileSystemType, PassOwnPtr<As yncFileSystemCallbacks>); |
56 | 55 |
57 FileSystemClient* client() { return m_client.get(); } | 56 FileSystemClient* client() { return m_client.get(); } |
58 | 57 |
59 protected: | 58 protected: |
60 explicit LocalFileSystemBase(PassOwnPtr<FileSystemClient>); | 59 explicit LocalFileSystemBase(PassOwnPtr<FileSystemClient>); |
61 | 60 |
62 OwnPtr<FileSystemClient> m_client; | 61 OwnPtr<FileSystemClient> m_client; |
63 }; | 62 }; |
64 | 63 |
65 class LocalFileSystem : public LocalFileSystemBase, public Supplement<Page> { | 64 class LocalFileSystem : public LocalFileSystemBase, public Supplement<Page> { |
66 public: | 65 public: |
67 static PassOwnPtr<LocalFileSystem> create(PassOwnPtr<FileSystemClient>); | 66 static PassOwnPtr<LocalFileSystem> create(PassOwnPtr<FileSystemClient>); |
68 static const char* supplementName(); | 67 static const char* supplementName(); |
69 static LocalFileSystem* from(ScriptExecutionContext*); | 68 static LocalFileSystem* from(ScriptExecutionContext*); |
70 virtual ~LocalFileSystem(); | 69 virtual ~LocalFileSystem(); |
71 | 70 |
72 private: | 71 private: |
73 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); | 72 explicit LocalFileSystem(PassOwnPtr<FileSystemClient>); |
74 }; | 73 }; |
75 | 74 |
76 | 75 |
77 } // namespace WebCore | 76 } // namespace WebCore |
78 | 77 |
79 #endif // LocalFileSystem_h | 78 #endif // LocalFileSystem_h |
OLD | NEW |