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

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
« 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 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 base::PlatformFile* file) {
242 return base::PLATFORM_FILE_ERROR_FAILED;
243 }
244
240 void MockPluginDelegate::SyncGetFileSystemPlatformPath( 245 void MockPluginDelegate::SyncGetFileSystemPlatformPath(
241 const GURL& url, 246 const GURL& url,
242 FilePath* platform_path) { 247 FilePath* platform_path) {
243 DCHECK(platform_path); 248 DCHECK(platform_path);
244 *platform_path = FilePath(); 249 *platform_path = FilePath();
245 } 250 }
246 251
247 scoped_refptr<base::MessageLoopProxy> 252 scoped_refptr<base::MessageLoopProxy>
248 MockPluginDelegate::GetFileThreadMessageLoopProxy() { 253 MockPluginDelegate::GetFileThreadMessageLoopProxy() {
249 return scoped_refptr<base::MessageLoopProxy>(); 254 return scoped_refptr<base::MessageLoopProxy>();
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 MockPluginDelegate::CreateClipboardClient() const { 454 MockPluginDelegate::CreateClipboardClient() const {
450 return NULL; 455 return NULL;
451 } 456 }
452 457
453 std::string MockPluginDelegate::GetDeviceID() { 458 std::string MockPluginDelegate::GetDeviceID() {
454 return std::string(); 459 return std::string();
455 } 460 }
456 461
457 } // namespace ppapi 462 } // namespace ppapi
458 } // namespace webkit 463 } // 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