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