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

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

Issue 13508005: Allow RequestOSFileHandle if an app has unlimited storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert most of patch set 2 Created 7 years, 8 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
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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 // When a file is successfully opened, |callback| is invoked with 468 // When a file is successfully opened, |callback| is invoked with
469 // PLATFORM_FILE_OK, the opened file handle, and a callback function for 469 // PLATFORM_FILE_OK, the opened file handle, and a callback function for
470 // notifying that the file is closed. When the users of this function 470 // notifying that the file is closed. When the users of this function
471 // finished using the file, they must close the file handle and then must call 471 // finished using the file, they must close the file handle and then must call
472 // the supplied callback function. 472 // the supplied callback function.
473 typedef base::Callback<void (base::PlatformFileError)> 473 typedef base::Callback<void (base::PlatformFileError)>
474 NotifyCloseFileCallback; 474 NotifyCloseFileCallback;
475 typedef base::Callback< 475 typedef base::Callback<
476 void (base::PlatformFileError, 476 void (base::PlatformFileError,
477 base::PassPlatformFile, 477 base::PassPlatformFile,
478 quota::QuotaLimitType,
478 const NotifyCloseFileCallback&)> AsyncOpenFileSystemURLCallback; 479 const NotifyCloseFileCallback&)> AsyncOpenFileSystemURLCallback;
479 virtual bool AsyncOpenFileSystemURL( 480 virtual bool AsyncOpenFileSystemURL(
480 const GURL& path, 481 const GURL& path,
481 int flags, 482 int flags,
482 const AsyncOpenFileSystemURLCallback& callback) = 0; 483 const AsyncOpenFileSystemURLCallback& callback) = 0;
483 484
484 virtual bool OpenFileSystem( 485 virtual bool OpenFileSystem(
485 const GURL& origin_url, 486 const GURL& origin_url,
486 fileapi::FileSystemType type, 487 fileapi::FileSystemType type,
487 long long size, 488 long long size,
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( 657 virtual IPC::PlatformFileForTransit ShareHandleWithRemote(
657 base::PlatformFile handle, 658 base::PlatformFile handle,
658 base::ProcessId target_process_id, 659 base::ProcessId target_process_id,
659 bool should_close_source) const = 0; 660 bool should_close_source) const = 0;
660 }; 661 };
661 662
662 } // namespace ppapi 663 } // namespace ppapi
663 } // namespace webkit 664 } // namespace webkit
664 665
665 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 666 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698