| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 virtual bool RunFileChooser( | 210 virtual bool RunFileChooser( |
| 211 const WebKit::WebFileChooserParams& params, | 211 const WebKit::WebFileChooserParams& params, |
| 212 WebKit::WebFileChooserCompletion* chooser_completion) OVERRIDE; | 212 WebKit::WebFileChooserCompletion* chooser_completion) OVERRIDE; |
| 213 virtual bool AsyncOpenFile(const FilePath& path, | 213 virtual bool AsyncOpenFile(const FilePath& path, |
| 214 int flags, | 214 int flags, |
| 215 const AsyncOpenFileCallback& callback) OVERRIDE; | 215 const AsyncOpenFileCallback& callback) OVERRIDE; |
| 216 virtual bool AsyncOpenFileSystemURL( | 216 virtual bool AsyncOpenFileSystemURL( |
| 217 const GURL& path, | 217 const GURL& path, |
| 218 int flags, | 218 int flags, |
| 219 const AsyncOpenFileCallback& callback) OVERRIDE; | 219 const AsyncOpenFileCallback& callback) OVERRIDE; |
| 220 virtual bool AsyncNotifyCloseFileSystemURL(const GURL& path) OVERRIDE; |
| 220 virtual bool OpenFileSystem( | 221 virtual bool OpenFileSystem( |
| 221 const GURL& url, | 222 const GURL& url, |
| 222 fileapi::FileSystemType type, | 223 fileapi::FileSystemType type, |
| 223 long long size, | 224 long long size, |
| 224 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; | 225 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; |
| 225 virtual bool MakeDirectory( | 226 virtual bool MakeDirectory( |
| 226 const GURL& path, | 227 const GURL& path, |
| 227 bool recursive, | 228 bool recursive, |
| 228 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; | 229 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; |
| 229 virtual bool Query( | 230 virtual bool Query( |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 virtual WebGraphicsContext3DCommandBufferImpl* | 459 virtual WebGraphicsContext3DCommandBufferImpl* |
| 459 GetParentContextForPlatformContext3D() OVERRIDE; | 460 GetParentContextForPlatformContext3D() OVERRIDE; |
| 460 | 461 |
| 461 MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter( | 462 MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter( |
| 462 webkit::ppapi::PluginInstance* instance); | 463 webkit::ppapi::PluginInstance* instance); |
| 463 void UnSetAndDeleteLockTargetAdapter(webkit::ppapi::PluginInstance* instance); | 464 void UnSetAndDeleteLockTargetAdapter(webkit::ppapi::PluginInstance* instance); |
| 464 | 465 |
| 465 MouseLockDispatcher* GetMouseLockDispatcher( | 466 MouseLockDispatcher* GetMouseLockDispatcher( |
| 466 webkit::ppapi::PluginInstance* instance); | 467 webkit::ppapi::PluginInstance* instance); |
| 467 | 468 |
| 469 // Notifies the file system about file close. |
| 470 void DoNotifyCloseFile(const GURL& path); |
| 471 |
| 468 // Pointer to the RenderView that owns us. | 472 // Pointer to the RenderView that owns us. |
| 469 RenderViewImpl* render_view_; | 473 RenderViewImpl* render_view_; |
| 470 | 474 |
| 471 std::set<webkit::ppapi::PluginInstance*> active_instances_; | 475 std::set<webkit::ppapi::PluginInstance*> active_instances_; |
| 472 typedef std::map<webkit::ppapi::PluginInstance*, | 476 typedef std::map<webkit::ppapi::PluginInstance*, |
| 473 MouseLockDispatcher::LockTarget*> LockTargetMap; | 477 MouseLockDispatcher::LockTarget*> LockTargetMap; |
| 474 LockTargetMap mouse_lock_instances_; | 478 LockTargetMap mouse_lock_instances_; |
| 475 | 479 |
| 476 // Used to send a single context menu "completion" upon menu close. | 480 // Used to send a single context menu "completion" upon menu close. |
| 477 bool has_saved_context_menu_action_; | 481 bool has_saved_context_menu_action_; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 514 |
| 511 scoped_ptr<PepperDeviceEnumerationEventHandler> | 515 scoped_ptr<PepperDeviceEnumerationEventHandler> |
| 512 device_enumeration_event_handler_; | 516 device_enumeration_event_handler_; |
| 513 | 517 |
| 514 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 518 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 515 }; | 519 }; |
| 516 | 520 |
| 517 } // namespace content | 521 } // namespace content |
| 518 | 522 |
| 519 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 523 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |