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

Side by Side Diff: Source/modules/filesystem/LocalFileSystem.h

Issue 23537011: FileAPI: Add WebFileSystem::resolveURL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 7 years, 3 months 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 29 matching lines...) Expand all
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*, const KURL&, PassOwnPtr<AsyncFileSy stemCallbacks>);
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
OLDNEW
« no previous file with comments | « Source/modules/filesystem/FileSystemCallbacks.cpp ('k') | Source/modules/filesystem/LocalFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698