| 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 GURL 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 389 |
| 387 MouseLockDispatcher* GetMouseLockDispatcher( | 390 MouseLockDispatcher* GetMouseLockDispatcher( |
| 388 webkit::ppapi::PluginInstance* instance); | 391 webkit::ppapi::PluginInstance* instance); |
| 389 | 392 |
| 390 // Share a given handle with the target process. | 393 // Share a given handle with the target process. |
| 391 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( | 394 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 392 base::PlatformFile handle, | 395 base::PlatformFile handle, |
| 393 base::ProcessId target_process_id, | 396 base::ProcessId target_process_id, |
| 394 bool should_close_source) const OVERRIDE; | 397 bool should_close_source) const OVERRIDE; |
| 395 | 398 |
| 399 virtual bool IsRunningInProcess(PP_Instance instance) const OVERRIDE; |
| 400 |
| 396 // Pointer to the RenderView that owns us. | 401 // Pointer to the RenderView that owns us. |
| 397 RenderViewImpl* render_view_; | 402 RenderViewImpl* render_view_; |
| 398 | 403 |
| 399 std::set<webkit::ppapi::PluginInstance*> active_instances_; | 404 std::set<webkit::ppapi::PluginInstance*> active_instances_; |
| 400 typedef std::map<webkit::ppapi::PluginInstance*, | 405 typedef std::map<webkit::ppapi::PluginInstance*, |
| 401 MouseLockDispatcher::LockTarget*> LockTargetMap; | 406 MouseLockDispatcher::LockTarget*> LockTargetMap; |
| 402 LockTargetMap mouse_lock_instances_; | 407 LockTargetMap mouse_lock_instances_; |
| 403 | 408 |
| 404 IDMap<AsyncOpenFileCallback> pending_async_open_files_; | 409 IDMap<AsyncOpenFileCallback> pending_async_open_files_; |
| 405 | 410 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 433 device_enumeration_event_handler_; | 438 device_enumeration_event_handler_; |
| 434 | 439 |
| 435 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_; | 440 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_; |
| 436 | 441 |
| 437 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 442 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 438 }; | 443 }; |
| 439 | 444 |
| 440 } // namespace content | 445 } // namespace content |
| 441 | 446 |
| 442 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 447 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |