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

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

Issue 10534045: Add CreateTemporaryFile to PPB_Flash_File_ModuleLocal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 base::PlatformFileInfo* info) { 230 base::PlatformFileInfo* info) {
231 return base::PLATFORM_FILE_ERROR_FAILED; 231 return base::PLATFORM_FILE_ERROR_FAILED;
232 } 232 }
233 233
234 base::PlatformFileError MockPluginDelegate::GetDirContents( 234 base::PlatformFileError MockPluginDelegate::GetDirContents(
235 const ::ppapi::PepperFilePath& path, 235 const ::ppapi::PepperFilePath& path,
236 ::ppapi::DirContents* contents) { 236 ::ppapi::DirContents* contents) {
237 return base::PLATFORM_FILE_ERROR_FAILED; 237 return base::PLATFORM_FILE_ERROR_FAILED;
238 } 238 }
239 239
240 base::PlatformFileError MockPluginDelegate::CreateTemporaryFile(
241 const ::ppapi::PepperFilePath& dir_path,
242 base::PlatformFile* file,
243 std::string* file_name) {
244 return base::PLATFORM_FILE_ERROR_FAILED;
245 }
246
240 void MockPluginDelegate::SyncGetFileSystemPlatformPath( 247 void MockPluginDelegate::SyncGetFileSystemPlatformPath(
241 const GURL& url, 248 const GURL& url,
242 FilePath* platform_path) { 249 FilePath* platform_path) {
243 DCHECK(platform_path); 250 DCHECK(platform_path);
244 *platform_path = FilePath(); 251 *platform_path = FilePath();
245 } 252 }
246 253
247 scoped_refptr<base::MessageLoopProxy> 254 scoped_refptr<base::MessageLoopProxy>
248 MockPluginDelegate::GetFileThreadMessageLoopProxy() { 255 MockPluginDelegate::GetFileThreadMessageLoopProxy() {
249 return scoped_refptr<base::MessageLoopProxy>(); 256 return scoped_refptr<base::MessageLoopProxy>();
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 MockPluginDelegate::CreateClipboardClient() const { 456 MockPluginDelegate::CreateClipboardClient() const {
450 return NULL; 457 return NULL;
451 } 458 }
452 459
453 std::string MockPluginDelegate::GetDeviceID() { 460 std::string MockPluginDelegate::GetDeviceID() {
454 return std::string(); 461 return std::string();
455 } 462 }
456 463
457 } // namespace ppapi 464 } // namespace ppapi
458 } // namespace webkit 465 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698