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

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.cc

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/shared_impl/ppapi_preferences.h" 10 #include "ppapi/shared_impl/ppapi_preferences.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 const GURL& origin, quota::StorageType type, 213 const GURL& origin, quota::StorageType type,
214 const AvailableSpaceCallback& callback) { 214 const AvailableSpaceCallback& callback) {
215 } 215 }
216 216
217 void MockPluginDelegate::WillUpdateFile(const GURL& file_path) { 217 void MockPluginDelegate::WillUpdateFile(const GURL& file_path) {
218 } 218 }
219 219
220 void MockPluginDelegate::DidUpdateFile(const GURL& file_path, int64_t delta) { 220 void MockPluginDelegate::DidUpdateFile(const GURL& file_path, int64_t delta) {
221 } 221 }
222 222
223 base::PlatformFileError MockPluginDelegate::OpenFile(
224 const ::ppapi::PepperFilePath& path,
225 int flags,
226 base::PlatformFile* file) {
227 return base::PLATFORM_FILE_ERROR_FAILED;
228 }
229
230 base::PlatformFileError MockPluginDelegate::RenameFile(
231 const ::ppapi::PepperFilePath& from_path,
232 const ::ppapi::PepperFilePath& to_path) {
233 return base::PLATFORM_FILE_ERROR_FAILED;
234 }
235
236 base::PlatformFileError MockPluginDelegate::DeleteFileOrDir(
237 const ::ppapi::PepperFilePath& path,
238 bool recursive) {
239 return base::PLATFORM_FILE_ERROR_FAILED;
240 }
241
242 base::PlatformFileError MockPluginDelegate::CreateDir(
243 const ::ppapi::PepperFilePath& path) {
244 return base::PLATFORM_FILE_ERROR_FAILED;
245 }
246
247 base::PlatformFileError MockPluginDelegate::QueryFile(
248 const ::ppapi::PepperFilePath& path,
249 base::PlatformFileInfo* info) {
250 return base::PLATFORM_FILE_ERROR_FAILED;
251 }
252
253 base::PlatformFileError MockPluginDelegate::GetDirContents(
254 const ::ppapi::PepperFilePath& path,
255 ::ppapi::DirContents* contents) {
256 return base::PLATFORM_FILE_ERROR_FAILED;
257 }
258
259 base::PlatformFileError MockPluginDelegate::CreateTemporaryFile(
260 base::PlatformFile* file) {
261 return base::PLATFORM_FILE_ERROR_FAILED;
262 }
263
264 void MockPluginDelegate::SyncGetFileSystemPlatformPath( 223 void MockPluginDelegate::SyncGetFileSystemPlatformPath(
265 const GURL& url, 224 const GURL& url,
266 FilePath* platform_path) { 225 FilePath* platform_path) {
267 DCHECK(platform_path); 226 DCHECK(platform_path);
268 *platform_path = FilePath(); 227 *platform_path = FilePath();
269 } 228 }
270 229
271 scoped_refptr<base::MessageLoopProxy> 230 scoped_refptr<base::MessageLoopProxy>
272 MockPluginDelegate::GetFileThreadMessageLoopProxy() { 231 MockPluginDelegate::GetFileThreadMessageLoopProxy() {
273 return scoped_refptr<base::MessageLoopProxy>(); 232 return scoped_refptr<base::MessageLoopProxy>();
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 } 424 }
466 425
467 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( 426 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions(
468 const GURL& document_url, 427 const GURL& document_url,
469 const GURL& plugin_url) { 428 const GURL& plugin_url) {
470 return PP_FLASHLSORESTRICTIONS_NONE; 429 return PP_FLASHLSORESTRICTIONS_NONE;
471 } 430 }
472 431
473 } // namespace ppapi 432 } // namespace ppapi
474 } // namespace webkit 433 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698