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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/id_map.h" | 14 #include "base/id_map.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "base/observer_list.h" | 18 #include "base/observer_list.h" |
19 #include "content/public/renderer/render_view_observer.h" | 19 #include "content/public/renderer/render_view_observer.h" |
20 #include "content/renderer/mouse_lock_dispatcher.h" | 20 #include "content/renderer/mouse_lock_dispatcher.h" |
21 #include "content/renderer/render_view_pepper_helper.h" | 21 #include "content/renderer/render_view_pepper_helper.h" |
| 22 #include "ppapi/c/pp_file_info.h" |
22 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h" | 23 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h" |
23 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h" | 24 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h" |
24 #include "ui/base/ime/text_input_type.h" | 25 #include "ui/base/ime/text_input_type.h" |
25 #include "webkit/plugins/ppapi/plugin_delegate.h" | 26 #include "webkit/plugins/ppapi/plugin_delegate.h" |
26 | 27 |
27 namespace base { | 28 namespace base { |
28 class FilePath; | 29 class FilePath; |
29 } | 30 } |
30 | 31 |
31 namespace IPC { | 32 namespace IPC { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 int total, | 198 int total, |
198 bool final_result) OVERRIDE; | 199 bool final_result) OVERRIDE; |
199 virtual void SelectedFindResultChanged(int identifier, int index) OVERRIDE; | 200 virtual void SelectedFindResultChanged(int identifier, int index) OVERRIDE; |
200 virtual bool AsyncOpenFile(const base::FilePath& path, | 201 virtual bool AsyncOpenFile(const base::FilePath& path, |
201 int flags, | 202 int flags, |
202 const AsyncOpenFileCallback& callback) OVERRIDE; | 203 const AsyncOpenFileCallback& callback) OVERRIDE; |
203 virtual bool AsyncOpenFileSystemURL( | 204 virtual bool AsyncOpenFileSystemURL( |
204 const GURL& path, | 205 const GURL& path, |
205 int flags, | 206 int flags, |
206 const AsyncOpenFileSystemURLCallback& callback) OVERRIDE; | 207 const AsyncOpenFileSystemURLCallback& callback) OVERRIDE; |
207 virtual bool OpenFileSystem( | 208 virtual bool IsFileSystemOpened(PP_Instance instance, |
208 const GURL& origin_url, | 209 PP_Resource resource) const OVERRIDE; |
209 fileapi::FileSystemType type, | 210 virtual PP_FileSystemType GetFileSystemType( |
210 long long size, | 211 PP_Instance instance, |
211 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; | 212 PP_Resource resource) const OVERRIDE; |
| 213 virtual std::string GetFileSystemRootUrl(PP_Instance instance, |
| 214 PP_Resource resource) const OVERRIDE; |
212 virtual bool MakeDirectory( | 215 virtual bool MakeDirectory( |
213 const GURL& path, | 216 const GURL& path, |
214 bool recursive, | 217 bool recursive, |
215 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; | 218 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; |
216 virtual bool Query( | 219 virtual bool Query( |
217 const GURL& path, | 220 const GURL& path, |
218 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; | 221 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; |
219 virtual bool Touch( | 222 virtual bool Touch( |
220 const GURL& path, | 223 const GURL& path, |
221 const base::Time& last_access_time, | 224 const base::Time& last_access_time, |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 device_enumeration_event_handler_; | 436 device_enumeration_event_handler_; |
434 | 437 |
435 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_; | 438 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_; |
436 | 439 |
437 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 440 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
438 }; | 441 }; |
439 | 442 |
440 } // namespace content | 443 } // namespace content |
441 | 444 |
442 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 445 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |