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

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

Issue 14472008: [FileAPI] Add file open ID and close callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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/fileapi/remote_file_system_proxy.h ('k') | no next file » | 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 478
479 // Sends an async IPC to open a file through filesystem API. 479 // Sends an async IPC to open a file through filesystem API.
480 // When a file is successfully opened, |callback| is invoked with 480 // When a file is successfully opened, |callback| is invoked with
481 // PLATFORM_FILE_OK, the opened file handle, and a callback function for 481 // PLATFORM_FILE_OK, the opened file handle, and a callback function for
482 // notifying that the file is closed. When the users of this function 482 // notifying that the file is closed. When the users of this function
483 // finished using the file, they must close the file handle and then must call 483 // finished using the file, they must close the file handle and then must call
484 // the supplied callback function. 484 // the supplied callback function.
485 typedef base::Callback<void (base::PlatformFileError)> 485 typedef base::Callback<void (base::PlatformFileError)>
486 NotifyCloseFileCallback; 486 NotifyCloseFileCallback;
487 typedef base::Callback< 487 typedef base::Callback<
488 void (base::PlatformFileError, 488 void (base::PlatformFileError error,
489 base::PassPlatformFile, 489 base::PassPlatformFile file,
490 quota::QuotaLimitType, 490 quota::QuotaLimitType quota_policy,
491 const NotifyCloseFileCallback&)> AsyncOpenFileSystemURLCallback; 491 const NotifyCloseFileCallback& close_file_callback)>
492 AsyncOpenFileSystemURLCallback;
492 virtual bool AsyncOpenFileSystemURL( 493 virtual bool AsyncOpenFileSystemURL(
493 const GURL& path, 494 const GURL& path,
494 int flags, 495 int flags,
495 const AsyncOpenFileSystemURLCallback& callback) = 0; 496 const AsyncOpenFileSystemURLCallback& callback) = 0;
496 497
497 virtual bool MakeDirectory( 498 virtual bool MakeDirectory(
498 const GURL& path, 499 const GURL& path,
499 bool recursive, 500 bool recursive,
500 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 501 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0;
501 virtual bool Query(const GURL& path, 502 virtual bool Query(const GURL& path,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 bool should_close_source) const = 0; 668 bool should_close_source) const = 0;
668 669
669 // Returns true if running in process. 670 // Returns true if running in process.
670 virtual bool IsRunningInProcess(PP_Instance instance) const = 0; 671 virtual bool IsRunningInProcess(PP_Instance instance) const = 0;
671 }; 672 };
672 673
673 } // namespace ppapi 674 } // namespace ppapi
674 } // namespace webkit 675 } // namespace webkit
675 676
676 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 677 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/remote_file_system_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698