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

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 10541113: Notify CloseFile from Pepper to FileSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (take 2). Created 8 years, 5 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.cc ('k') | webkit/plugins/ppapi/ppb_file_io_impl.cc » ('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 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)> 417 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)>
418 AsyncOpenFileCallback; 418 AsyncOpenFileCallback;
419 virtual bool AsyncOpenFile(const FilePath& path, 419 virtual bool AsyncOpenFile(const FilePath& path,
420 int flags, 420 int flags,
421 const AsyncOpenFileCallback& callback) = 0; 421 const AsyncOpenFileCallback& callback) = 0;
422 virtual bool AsyncOpenFileSystemURL( 422 virtual bool AsyncOpenFileSystemURL(
423 const GURL& path, 423 const GURL& path,
424 int flags, 424 int flags,
425 const AsyncOpenFileCallback& callback) = 0; 425 const AsyncOpenFileCallback& callback) = 0;
426 426
427 // Retrieves a callback for doing clean-up task for closing filesystem URL.
428 virtual base::Callback<void (base::PlatformFileError)>
yzshen1 2012/06/28 20:14:17 It seems more intuitive to have such an interface:
kinaba 2012/06/29 09:28:33 No reason to object. Done.
429 GetCloseFileSystemURLCallback(const GURL& path) = 0;
430
427 virtual bool OpenFileSystem( 431 virtual bool OpenFileSystem(
428 const GURL& url, 432 const GURL& url,
429 fileapi::FileSystemType type, 433 fileapi::FileSystemType type,
430 long long size, 434 long long size,
431 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 435 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0;
432 virtual bool MakeDirectory( 436 virtual bool MakeDirectory(
433 const GURL& path, 437 const GURL& path,
434 bool recursive, 438 bool recursive,
435 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 439 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0;
436 virtual bool Query(const GURL& path, 440 virtual bool Query(const GURL& path,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 652 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
649 653
650 // Returns a Device ID 654 // Returns a Device ID
651 virtual std::string GetDeviceID() = 0; 655 virtual std::string GetDeviceID() = 0;
652 }; 656 };
653 657
654 } // namespace ppapi 658 } // namespace ppapi
655 } // namespace webkit 659 } // namespace webkit
656 660
657 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 661 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppb_file_io_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698