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 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" | 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" |
6 | 6 |
7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/shared_impl/ppapi_preferences.h" | 9 #include "ppapi/shared_impl/ppapi_preferences.h" |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 fileapi::FileSystemCallbackDispatcher* dispatcher) { | 129 fileapi::FileSystemCallbackDispatcher* dispatcher) { |
130 return false; | 130 return false; |
131 } | 131 } |
132 | 132 |
133 bool MockPluginDelegate::ReadDirectory( | 133 bool MockPluginDelegate::ReadDirectory( |
134 const GURL& directory_path, | 134 const GURL& directory_path, |
135 fileapi::FileSystemCallbackDispatcher* dispatcher) { | 135 fileapi::FileSystemCallbackDispatcher* dispatcher) { |
136 return false; | 136 return false; |
137 } | 137 } |
138 | 138 |
| 139 void MockPluginDelegate::QueryAvailableSpace( |
| 140 const GURL& origin, quota::StorageType type, |
| 141 AvailableSpaceCallback* callback) { |
| 142 } |
| 143 |
| 144 void MockPluginDelegate::WillUpdateFile(const GURL& file_path) { |
| 145 } |
| 146 |
| 147 void MockPluginDelegate::DidUpdateFile(const GURL& file_path, int64_t delta) { |
| 148 } |
| 149 |
139 base::PlatformFileError MockPluginDelegate::OpenFile( | 150 base::PlatformFileError MockPluginDelegate::OpenFile( |
140 const PepperFilePath& path, | 151 const PepperFilePath& path, |
141 int flags, | 152 int flags, |
142 base::PlatformFile* file) { | 153 base::PlatformFile* file) { |
143 return base::PLATFORM_FILE_ERROR_FAILED; | 154 return base::PLATFORM_FILE_ERROR_FAILED; |
144 } | 155 } |
145 | 156 |
146 base::PlatformFileError MockPluginDelegate::RenameFile( | 157 base::PlatformFileError MockPluginDelegate::RenameFile( |
147 const PepperFilePath& from_path, | 158 const PepperFilePath& from_path, |
148 const PepperFilePath& to_path) { | 159 const PepperFilePath& to_path) { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 uint32_t size) { | 270 uint32_t size) { |
260 return NULL; | 271 return NULL; |
261 } | 272 } |
262 | 273 |
263 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { | 274 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { |
264 return ::ppapi::Preferences(); | 275 return ::ppapi::Preferences(); |
265 } | 276 } |
266 | 277 |
267 } // namespace ppapi | 278 } // namespace ppapi |
268 } // namespace webkit | 279 } // namespace webkit |
OLD | NEW |