| 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_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 113 // Indicates that the given instance is being destroyed. This is called from | 113 // Indicates that the given instance is being destroyed. This is called from |
| 114 // the destructor, so it's important that the instance is not dereferenced | 114 // the destructor, so it's important that the instance is not dereferenced |
| 115 // from this call. | 115 // from this call. |
| 116 void InstanceDeleted(PepperPluginInstanceImpl* instance); | 116 void InstanceDeleted(PepperPluginInstanceImpl* instance); |
| 117 | 117 |
| 118 // Sends an async IPC to open a local file. | 118 // Sends an async IPC to open a local file. |
| 119 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)> | 119 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)> |
| 120 AsyncOpenFileCallback; | 120 AsyncOpenFileCallback; |
| 121 bool AsyncOpenFile(const base::FilePath& path, | 121 bool AsyncOpenFile(const base::FilePath& path, |
| 122 int flags, | 122 int pp_open_flags, |
| 123 const AsyncOpenFileCallback& callback); | 123 const AsyncOpenFileCallback& callback); |
| 124 | 124 |
| 125 // Retrieve current gamepad data. | 125 // Retrieve current gamepad data. |
| 126 void SampleGamepads(WebKit::WebGamepads* data); | 126 void SampleGamepads(WebKit::WebGamepads* data); |
| 127 | 127 |
| 128 // Notifies the plugin of the document load. This should initiate the call to | 128 // Notifies the plugin of the document load. This should initiate the call to |
| 129 // PPP_Instance.HandleDocumentLoad. | 129 // PPP_Instance.HandleDocumentLoad. |
| 130 // | 130 // |
| 131 // The loader object should set itself on the PluginInstance as the document | 131 // The loader object should set itself on the PluginInstance as the document |
| 132 // loader using set_document_loader. | 132 // loader using set_document_loader. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 280 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 281 | 281 |
| 282 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_; | 282 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_; |
| 283 | 283 |
| 284 DISALLOW_COPY_AND_ASSIGN(PepperHelperImpl); | 284 DISALLOW_COPY_AND_ASSIGN(PepperHelperImpl); |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 } // namespace content | 287 } // namespace content |
| 288 | 288 |
| 289 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_H_ | 289 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_H_ |
| OLD | NEW |