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

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. 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.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 #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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 bool final_result) = 0; 415 bool final_result) = 0;
416 416
417 // Notifies that the index of the currently selected item has been updated. 417 // Notifies that the index of the currently selected item has been updated.
418 virtual void SelectedFindResultChanged(int identifier, int index) = 0; 418 virtual void SelectedFindResultChanged(int identifier, int index) = 0;
419 419
420 // Runs a file chooser. 420 // Runs a file chooser.
421 virtual bool RunFileChooser( 421 virtual bool RunFileChooser(
422 const WebKit::WebFileChooserParams& params, 422 const WebKit::WebFileChooserParams& params,
423 WebKit::WebFileChooserCompletion* chooser_completion) = 0; 423 WebKit::WebFileChooserCompletion* chooser_completion) = 0;
424 424
425 // Sends an async IPC to open a file. 425 // Sends an async IPC to open a local file.
426 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)> 426 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)>
427 AsyncOpenFileCallback; 427 AsyncOpenFileCallback;
428 virtual bool AsyncOpenFile(const FilePath& path, 428 virtual bool AsyncOpenFile(const FilePath& path,
429 int flags, 429 int flags,
430 const AsyncOpenFileCallback& callback) = 0; 430 const AsyncOpenFileCallback& callback) = 0;
431
432 // Sends an async IPC to open a file through filesystem API.
433 // When a file is successfully opened, |callback| is invoked with
434 // PLATFORM_FILE_OK, the opened file handle, and a callback function for
435 // notifying that the file is closed. When the users of this function
436 // finished using the file, they must close the file handle and then must call
437 // the supplied callback function.
438 typedef base::Callback<void (base::PlatformFileError)>
439 NotifyCloseFileCallback;
440 typedef base::Callback<
441 void (base::PlatformFileError,
442 base::PassPlatformFile,
443 const NotifyCloseFileCallback&)> AsyncOpenFileSystemURLCallback;
431 virtual bool AsyncOpenFileSystemURL( 444 virtual bool AsyncOpenFileSystemURL(
432 const GURL& path, 445 const GURL& path,
433 int flags, 446 int flags,
434 const AsyncOpenFileCallback& callback) = 0; 447 const AsyncOpenFileSystemURLCallback& callback) = 0;
435 448
436 virtual bool OpenFileSystem( 449 virtual bool OpenFileSystem(
437 const GURL& url, 450 const GURL& url,
438 fileapi::FileSystemType type, 451 fileapi::FileSystemType type,
439 long long size, 452 long long size,
440 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 453 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0;
441 virtual bool MakeDirectory( 454 virtual bool MakeDirectory(
442 const GURL& path, 455 const GURL& path,
443 bool recursive, 456 bool recursive,
444 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 457 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 670 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
658 671
659 // Returns a Device ID 672 // Returns a Device ID
660 virtual std::string GetDeviceID() = 0; 673 virtual std::string GetDeviceID() = 0;
661 }; 674 };
662 675
663 } // namespace ppapi 676 } // namespace ppapi
664 } // namespace webkit 677 } // namespace webkit
665 678
666 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 679 #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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698