OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include "webkit/plugins/ppapi/plugin_delegate.h" | 8 #include "webkit/plugins/ppapi/plugin_delegate.h" |
9 | 9 |
10 namespace gpu { | 10 namespace gpu { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 const base::Time& last_modified_time, | 63 const base::Time& last_modified_time, |
64 fileapi::FileSystemCallbackDispatcher* dispatcher); | 64 fileapi::FileSystemCallbackDispatcher* dispatcher); |
65 virtual bool Delete(const GURL& path, | 65 virtual bool Delete(const GURL& path, |
66 fileapi::FileSystemCallbackDispatcher* dispatcher); | 66 fileapi::FileSystemCallbackDispatcher* dispatcher); |
67 virtual bool Rename(const GURL& file_path, | 67 virtual bool Rename(const GURL& file_path, |
68 const GURL& new_file_path, | 68 const GURL& new_file_path, |
69 fileapi::FileSystemCallbackDispatcher* dispatcher); | 69 fileapi::FileSystemCallbackDispatcher* dispatcher); |
70 virtual bool ReadDirectory( | 70 virtual bool ReadDirectory( |
71 const GURL& directory_path, | 71 const GURL& directory_path, |
72 fileapi::FileSystemCallbackDispatcher* dispatcher); | 72 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 73 virtual void QueryAvailableSpace(const GURL& origin, |
| 74 quota::StorageType type, |
| 75 AvailableSpaceCallback* callback); |
| 76 virtual void WillUpdateFile(const GURL& file_path); |
| 77 virtual void DidUpdateFile(const GURL& file_path, int64_t delta); |
73 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, | 78 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, |
74 int flags, | 79 int flags, |
75 base::PlatformFile* file); | 80 base::PlatformFile* file); |
76 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, | 81 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, |
77 const PepperFilePath& to_path); | 82 const PepperFilePath& to_path); |
78 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, | 83 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, |
79 bool recursive); | 84 bool recursive); |
80 virtual base::PlatformFileError CreateDir(const PepperFilePath& path); | 85 virtual base::PlatformFileError CreateDir(const PepperFilePath& path); |
81 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, | 86 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, |
82 base::PlatformFileInfo* info); | 87 base::PlatformFileInfo* info); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual double GetLocalTimeZoneOffset(base::Time t); | 119 virtual double GetLocalTimeZoneOffset(base::Time t); |
115 virtual std::string GetFlashCommandLineArgs(); | 120 virtual std::string GetFlashCommandLineArgs(); |
116 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size); | 121 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size); |
117 virtual ::ppapi::Preferences GetPreferences(); | 122 virtual ::ppapi::Preferences GetPreferences(); |
118 }; | 123 }; |
119 | 124 |
120 } // namespace ppapi | 125 } // namespace ppapi |
121 } // namespace webkit | 126 } // namespace webkit |
122 | 127 |
123 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 128 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |