| OLD | NEW |
| 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" | |
| 13 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 14 #include "base/message_loop_proxy.h" | 13 #include "base/message_loop_proxy.h" |
| 15 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
| 16 #include "base/process.h" | 15 #include "base/process.h" |
| 17 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
| 18 #include "base/sync_socket.h" | 17 #include "base/sync_socket.h" |
| 19 #include "base/time.h" | 18 #include "base/time.h" |
| 20 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 21 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
| 22 #include "media/video/capture/video_capture.h" | 21 #include "media/video/capture/video_capture.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 47 | 46 |
| 48 namespace WebKit { | 47 namespace WebKit { |
| 49 class WebGraphicsContext3D; | 48 class WebGraphicsContext3D; |
| 50 } | 49 } |
| 51 | 50 |
| 52 namespace base { | 51 namespace base { |
| 53 class MessageLoopProxy; | 52 class MessageLoopProxy; |
| 54 class Time; | 53 class Time; |
| 55 } | 54 } |
| 56 | 55 |
| 56 namespace fileapi { |
| 57 struct DirectoryEntry; |
| 58 } |
| 59 |
| 57 namespace gfx { | 60 namespace gfx { |
| 58 class Point; | 61 class Point; |
| 59 } | 62 } |
| 60 | 63 |
| 61 namespace gpu { | 64 namespace gpu { |
| 62 class CommandBuffer; | 65 class CommandBuffer; |
| 63 } | 66 } |
| 64 | 67 |
| 65 namespace ppapi { | 68 namespace ppapi { |
| 66 class PepperFilePath; | 69 class PepperFilePath; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 86 class WebURLResponse; | 89 class WebURLResponse; |
| 87 } | 90 } |
| 88 | 91 |
| 89 namespace webkit_glue { | 92 namespace webkit_glue { |
| 90 class ClipboardClient; | 93 class ClipboardClient; |
| 91 class P2PTransport; | 94 class P2PTransport; |
| 92 class NetworkListObserver; | 95 class NetworkListObserver; |
| 93 } // namespace webkit_glue | 96 } // namespace webkit_glue |
| 94 | 97 |
| 95 namespace webkit { | 98 namespace webkit { |
| 99 |
| 96 namespace ppapi { | 100 namespace ppapi { |
| 97 | 101 |
| 98 class FileIO; | 102 class FileIO; |
| 99 class FullscreenContainer; | 103 class FullscreenContainer; |
| 100 class PluginInstance; | 104 class PluginInstance; |
| 101 class PluginModule; | 105 class PluginModule; |
| 102 class PPB_Broker_Impl; | 106 class PPB_Broker_Impl; |
| 103 class PPB_Flash_Menu_Impl; | 107 class PPB_Flash_Menu_Impl; |
| 104 class PPB_ImageData_Impl; | 108 class PPB_ImageData_Impl; |
| 105 class PPB_TCPSocket_Private_Impl; | 109 class PPB_TCPSocket_Private_Impl; |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 const NotifyCloseFileCallback& close_file_callback)> | 498 const NotifyCloseFileCallback& close_file_callback)> |
| 495 AsyncOpenFileSystemURLCallback; | 499 AsyncOpenFileSystemURLCallback; |
| 496 virtual bool AsyncOpenFileSystemURL( | 500 virtual bool AsyncOpenFileSystemURL( |
| 497 const GURL& path, | 501 const GURL& path, |
| 498 int flags, | 502 int flags, |
| 499 const AsyncOpenFileSystemURLCallback& callback) = 0; | 503 const AsyncOpenFileSystemURLCallback& callback) = 0; |
| 500 | 504 |
| 501 // Callback typedefs for FileSystem related methods. | 505 // Callback typedefs for FileSystem related methods. |
| 502 typedef base::Callback<void (base::PlatformFileError)> StatusCallback; | 506 typedef base::Callback<void (base::PlatformFileError)> StatusCallback; |
| 503 typedef base::Callback<void( | 507 typedef base::Callback<void( |
| 504 const std::vector<base::FileUtilProxy::Entry>& entries, | 508 const std::vector<fileapi::DirectoryEntry>& entries, |
| 505 bool has_more)> ReadDirectoryCallback; | 509 bool has_more)> ReadDirectoryCallback; |
| 506 typedef base::Callback<void( | 510 typedef base::Callback<void( |
| 507 const base::PlatformFileInfo& file_info, | 511 const base::PlatformFileInfo& file_info, |
| 508 const base::FilePath& platform_path)> MetadataCallback; | 512 const base::FilePath& platform_path)> MetadataCallback; |
| 509 | 513 |
| 510 virtual bool MakeDirectory( | 514 virtual bool MakeDirectory( |
| 511 const GURL& path, | 515 const GURL& path, |
| 512 bool recursive, | 516 bool recursive, |
| 513 const StatusCallback& callback) = 0; | 517 const StatusCallback& callback) = 0; |
| 514 virtual bool Query(const GURL& path, | 518 virtual bool Query(const GURL& path, |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 // The loader object should set itself on the PluginInstance as the document | 698 // The loader object should set itself on the PluginInstance as the document |
| 695 // loader using set_document_loader. | 699 // loader using set_document_loader. |
| 696 virtual void HandleDocumentLoad(PluginInstance* instance, | 700 virtual void HandleDocumentLoad(PluginInstance* instance, |
| 697 const WebKit::WebURLResponse& response) = 0; | 701 const WebKit::WebURLResponse& response) = 0; |
| 698 }; | 702 }; |
| 699 | 703 |
| 700 } // namespace ppapi | 704 } // namespace ppapi |
| 701 } // namespace webkit | 705 } // namespace webkit |
| 702 | 706 |
| 703 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 707 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |