| 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 base::Callback<void (base::PlatformFileError)> |
| 221 GetCloseFileSystemURLCallback(const GURL& path) OVERRIDE; |
| 220 virtual bool OpenFileSystem( | 222 virtual bool OpenFileSystem( |
| 221 const GURL& url, | 223 const GURL& url, |
| 222 fileapi::FileSystemType type, | 224 fileapi::FileSystemType type, |
| 223 long long size, | 225 long long size, |
| 224 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; | 226 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; |
| 225 virtual bool MakeDirectory( | 227 virtual bool MakeDirectory( |
| 226 const GURL& path, | 228 const GURL& path, |
| 227 bool recursive, | 229 bool recursive, |
| 228 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; | 230 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; |
| 229 virtual bool Query( | 231 virtual bool Query( |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 virtual WebGraphicsContext3DCommandBufferImpl* | 462 virtual WebGraphicsContext3DCommandBufferImpl* |
| 461 GetParentContextForPlatformContext3D() OVERRIDE; | 463 GetParentContextForPlatformContext3D() OVERRIDE; |
| 462 | 464 |
| 463 MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter( | 465 MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter( |
| 464 webkit::ppapi::PluginInstance* instance); | 466 webkit::ppapi::PluginInstance* instance); |
| 465 void UnSetAndDeleteLockTargetAdapter(webkit::ppapi::PluginInstance* instance); | 467 void UnSetAndDeleteLockTargetAdapter(webkit::ppapi::PluginInstance* instance); |
| 466 | 468 |
| 467 MouseLockDispatcher* GetMouseLockDispatcher( | 469 MouseLockDispatcher* GetMouseLockDispatcher( |
| 468 webkit::ppapi::PluginInstance* instance); | 470 webkit::ppapi::PluginInstance* instance); |
| 469 | 471 |
| 472 // Notifies the file system about file close. |
| 473 void DoNotifyCloseFile(const GURL& path, base::PlatformFileError unused); |
| 474 |
| 470 // Pointer to the RenderView that owns us. | 475 // Pointer to the RenderView that owns us. |
| 471 RenderViewImpl* render_view_; | 476 RenderViewImpl* render_view_; |
| 472 | 477 |
| 473 std::set<webkit::ppapi::PluginInstance*> active_instances_; | 478 std::set<webkit::ppapi::PluginInstance*> active_instances_; |
| 474 typedef std::map<webkit::ppapi::PluginInstance*, | 479 typedef std::map<webkit::ppapi::PluginInstance*, |
| 475 MouseLockDispatcher::LockTarget*> LockTargetMap; | 480 MouseLockDispatcher::LockTarget*> LockTargetMap; |
| 476 LockTargetMap mouse_lock_instances_; | 481 LockTargetMap mouse_lock_instances_; |
| 477 | 482 |
| 478 // Used to send a single context menu "completion" upon menu close. | 483 // Used to send a single context menu "completion" upon menu close. |
| 479 bool has_saved_context_menu_action_; | 484 bool has_saved_context_menu_action_; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 | 517 |
| 513 scoped_ptr<PepperDeviceEnumerationEventHandler> | 518 scoped_ptr<PepperDeviceEnumerationEventHandler> |
| 514 device_enumeration_event_handler_; | 519 device_enumeration_event_handler_; |
| 515 | 520 |
| 516 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 521 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 517 }; | 522 }; |
| 518 | 523 |
| 519 } // namespace content | 524 } // namespace content |
| 520 | 525 |
| 521 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 526 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |