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

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

Issue 14796018: Cleanup: Deprecate FileSystemCallbackDispatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppb_file_ref_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
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/files/file_util_proxy.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/message_loop_proxy.h" 14 #include "base/message_loop_proxy.h"
14 #include "base/platform_file.h" 15 #include "base/platform_file.h"
15 #include "base/process.h" 16 #include "base/process.h"
16 #include "base/shared_memory.h" 17 #include "base/shared_memory.h"
17 #include "base/sync_socket.h" 18 #include "base/sync_socket.h"
18 #include "base/time.h" 19 #include "base/time.h"
19 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
20 #include "ipc/ipc_platform_file.h" 21 #include "ipc/ipc_platform_file.h"
21 #include "media/video/capture/video_capture.h" 22 #include "media/video/capture/video_capture.h"
(...skipping 24 matching lines...) Expand all
46 47
47 namespace WebKit { 48 namespace WebKit {
48 class WebGraphicsContext3D; 49 class WebGraphicsContext3D;
49 } 50 }
50 51
51 namespace base { 52 namespace base {
52 class MessageLoopProxy; 53 class MessageLoopProxy;
53 class Time; 54 class Time;
54 } 55 }
55 56
56 namespace fileapi {
57 class FileSystemCallbackDispatcher;
58 }
59
60 namespace gfx { 57 namespace gfx {
61 class Point; 58 class Point;
62 } 59 }
63 60
64 namespace gpu { 61 namespace gpu {
65 class CommandBuffer; 62 class CommandBuffer;
66 } 63 }
67 64
68 namespace ppapi { 65 namespace ppapi {
69 class PepperFilePath; 66 class PepperFilePath;
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 void (base::PlatformFileError error, 491 void (base::PlatformFileError error,
495 base::PassPlatformFile file, 492 base::PassPlatformFile file,
496 quota::QuotaLimitType quota_policy, 493 quota::QuotaLimitType quota_policy,
497 const NotifyCloseFileCallback& close_file_callback)> 494 const NotifyCloseFileCallback& close_file_callback)>
498 AsyncOpenFileSystemURLCallback; 495 AsyncOpenFileSystemURLCallback;
499 virtual bool AsyncOpenFileSystemURL( 496 virtual bool AsyncOpenFileSystemURL(
500 const GURL& path, 497 const GURL& path,
501 int flags, 498 int flags,
502 const AsyncOpenFileSystemURLCallback& callback) = 0; 499 const AsyncOpenFileSystemURLCallback& callback) = 0;
503 500
501 // Callback typedefs for FileSystem related methods.
502 typedef base::Callback<void (base::PlatformFileError)> StatusCallback;
503 typedef base::Callback<void(
504 const std::vector<base::FileUtilProxy::Entry>& entries,
505 bool has_more)> ReadDirectoryCallback;
506 typedef base::Callback<void(
507 const base::PlatformFileInfo& file_info,
508 const base::FilePath& platform_path)> MetadataCallback;
509
504 virtual bool MakeDirectory( 510 virtual bool MakeDirectory(
505 const GURL& path, 511 const GURL& path,
506 bool recursive, 512 bool recursive,
507 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 513 const StatusCallback& callback) = 0;
508 virtual bool Query(const GURL& path, 514 virtual bool Query(const GURL& path,
509 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 515 const MetadataCallback& success_callback,
516 const StatusCallback& error_callback) = 0;
510 virtual bool ReadDirectoryEntries( 517 virtual bool ReadDirectoryEntries(
511 const GURL& path, 518 const GURL& path,
512 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 519 const ReadDirectoryCallback& success_callback,
520 const StatusCallback& error_callback) = 0;
513 virtual bool Touch(const GURL& path, 521 virtual bool Touch(const GURL& path,
514 const base::Time& last_access_time, 522 const base::Time& last_access_time,
515 const base::Time& last_modified_time, 523 const base::Time& last_modified_time,
516 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 524 const StatusCallback& callback) = 0;
517 virtual bool SetLength(const GURL& path, 525 virtual bool SetLength(const GURL& path,
518 int64_t length, 526 int64_t length,
519 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 527 const StatusCallback& callback) = 0;
520 virtual bool Delete(const GURL& path, 528 virtual bool Delete(const GURL& path,
521 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 529 const StatusCallback& callback) = 0;
522 virtual bool Rename(const GURL& file_path, 530 virtual bool Rename(const GURL& file_path,
523 const GURL& new_file_path, 531 const GURL& new_file_path,
524 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 532 const StatusCallback& callback) = 0;
525 virtual bool ReadDirectory( 533 virtual bool ReadDirectory(
526 const GURL& directory_path, 534 const GURL& directory_path,
527 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; 535 const ReadDirectoryCallback& success_callback,
536 const StatusCallback& error_callback) = 0;
528 537
529 // For quota handlings for FileIO API. 538 // For quota handlings for FileIO API.
530 typedef base::Callback<void (int64)> AvailableSpaceCallback; 539 typedef base::Callback<void (int64)> AvailableSpaceCallback;
531 virtual void QueryAvailableSpace(const GURL& origin, 540 virtual void QueryAvailableSpace(const GURL& origin,
532 quota::StorageType type, 541 quota::StorageType type,
533 const AvailableSpaceCallback& callback) = 0; 542 const AvailableSpaceCallback& callback) = 0;
534 virtual void WillUpdateFile(const GURL& file_path) = 0; 543 virtual void WillUpdateFile(const GURL& file_path) = 0;
535 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0; 544 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0;
536 545
537 // Synchronously returns the platform file path for a filesystem URL. 546 // Synchronously returns the platform file path for a filesystem URL.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 // The loader object should set itself on the PluginInstance as the document 694 // The loader object should set itself on the PluginInstance as the document
686 // loader using set_document_loader. 695 // loader using set_document_loader.
687 virtual void HandleDocumentLoad(PluginInstance* instance, 696 virtual void HandleDocumentLoad(PluginInstance* instance,
688 const WebKit::WebURLResponse& response) = 0; 697 const WebKit::WebURLResponse& response) = 0;
689 }; 698 };
690 699
691 } // namespace ppapi 700 } // namespace ppapi
692 } // namespace webkit 701 } // namespace webkit
693 702
694 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 703 #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_ref_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698