OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MOCK_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include "webkit/plugins/ppapi/plugin_delegate.h" | 8 #include "webkit/plugins/ppapi/plugin_delegate.h" |
9 | 9 |
10 namespace webkit { | 10 namespace webkit { |
(...skipping 26 matching lines...) Expand all Loading... |
37 WebKit::WebFileChooserCompletion* chooser_completion); | 37 WebKit::WebFileChooserCompletion* chooser_completion); |
38 virtual bool AsyncOpenFile(const FilePath& path, | 38 virtual bool AsyncOpenFile(const FilePath& path, |
39 int flags, | 39 int flags, |
40 AsyncOpenFileCallback* callback); | 40 AsyncOpenFileCallback* callback); |
41 virtual bool OpenFileSystem( | 41 virtual bool OpenFileSystem( |
42 const GURL& url, | 42 const GURL& url, |
43 fileapi::FileSystemType type, | 43 fileapi::FileSystemType type, |
44 long long size, | 44 long long size, |
45 fileapi::FileSystemCallbackDispatcher* dispatcher); | 45 fileapi::FileSystemCallbackDispatcher* dispatcher); |
46 virtual bool MakeDirectory( | 46 virtual bool MakeDirectory( |
47 const FilePath& path, | 47 const GURL& path, |
48 bool recursive, | 48 bool recursive, |
49 fileapi::FileSystemCallbackDispatcher* dispatcher); | 49 fileapi::FileSystemCallbackDispatcher* dispatcher); |
50 virtual bool Query(const FilePath& path, | 50 virtual bool Query(const GURL& path, |
51 fileapi::FileSystemCallbackDispatcher* dispatcher); | 51 fileapi::FileSystemCallbackDispatcher* dispatcher); |
52 virtual bool Touch(const FilePath& path, | 52 virtual bool Touch(const GURL& path, |
53 const base::Time& last_access_time, | 53 const base::Time& last_access_time, |
54 const base::Time& last_modified_time, | 54 const base::Time& last_modified_time, |
55 fileapi::FileSystemCallbackDispatcher* dispatcher); | 55 fileapi::FileSystemCallbackDispatcher* dispatcher); |
56 virtual bool Delete(const FilePath& path, | 56 virtual bool Delete(const GURL& path, |
57 fileapi::FileSystemCallbackDispatcher* dispatcher); | 57 fileapi::FileSystemCallbackDispatcher* dispatcher); |
58 virtual bool Rename(const FilePath& file_path, | 58 virtual bool Rename(const GURL& file_path, |
59 const FilePath& new_file_path, | 59 const GURL& new_file_path, |
60 fileapi::FileSystemCallbackDispatcher* dispatcher); | 60 fileapi::FileSystemCallbackDispatcher* dispatcher); |
61 virtual bool ReadDirectory( | 61 virtual bool ReadDirectory( |
62 const FilePath& directory_path, | 62 const GURL& directory_path, |
63 fileapi::FileSystemCallbackDispatcher* dispatcher); | 63 fileapi::FileSystemCallbackDispatcher* dispatcher); |
64 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, | 64 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, |
65 int flags, | 65 int flags, |
66 base::PlatformFile* file); | 66 base::PlatformFile* file); |
67 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, | 67 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, |
68 const PepperFilePath& to_path); | 68 const PepperFilePath& to_path); |
69 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, | 69 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, |
70 bool recursive); | 70 bool recursive); |
71 virtual base::PlatformFileError CreateDir(const PepperFilePath& path); | 71 virtual base::PlatformFileError CreateDir(const PepperFilePath& path); |
72 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, | 72 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, |
(...skipping 25 matching lines...) Expand all Loading... |
98 virtual void SetContentRestriction(int restrictions); | 98 virtual void SetContentRestriction(int restrictions); |
99 virtual void HasUnsupportedFeature(); | 99 virtual void HasUnsupportedFeature(); |
100 virtual P2PSocketDispatcher* GetP2PSocketDispatcher(); | 100 virtual P2PSocketDispatcher* GetP2PSocketDispatcher(); |
101 virtual webkit_glue::P2PTransport* CreateP2PTransport(); | 101 virtual webkit_glue::P2PTransport* CreateP2PTransport(); |
102 }; | 102 }; |
103 | 103 |
104 } // namespace ppapi | 104 } // namespace ppapi |
105 } // namespace webkit | 105 } // namespace webkit |
106 | 106 |
107 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 107 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |