| 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/message_loop_proxy.h" | 13 #include "base/message_loop_proxy.h" |
| 14 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
| 15 #include "base/process.h" |
| 15 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
| 16 #include "base/sync_socket.h" | 17 #include "base/sync_socket.h" |
| 17 #include "base/time.h" | 18 #include "base/time.h" |
| 18 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 19 #include "media/video/capture/video_capture.h" | 20 #include "media/video/capture/video_capture.h" |
| 20 #include "media/video/video_decode_accelerator.h" | 21 #include "media/video/video_decode_accelerator.h" |
| 21 #include "ppapi/c/dev/pp_video_dev.h" | 22 #include "ppapi/c/dev/pp_video_dev.h" |
| 22 #include "ppapi/c/dev/ppb_device_ref_dev.h" | 23 #include "ppapi/c/dev/ppb_device_ref_dev.h" |
| 23 #include "ppapi/c/pp_completion_callback.h" | 24 #include "ppapi/c/pp_completion_callback.h" |
| 24 #include "ppapi/c/pp_errors.h" | 25 #include "ppapi/c/pp_errors.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Notification to the out-of-process layer that the given plugin instance | 148 // Notification to the out-of-process layer that the given plugin instance |
| 148 // has been created. This will happen before the normal PPB_Instance method | 149 // has been created. This will happen before the normal PPB_Instance method |
| 149 // calls so the out-of-process code can set up the tracking information for | 150 // calls so the out-of-process code can set up the tracking information for |
| 150 // the new instance. | 151 // the new instance. |
| 151 virtual void AddInstance(PP_Instance instance) = 0; | 152 virtual void AddInstance(PP_Instance instance) = 0; |
| 152 | 153 |
| 153 // Like AddInstance but removes the given instance. This is called after | 154 // Like AddInstance but removes the given instance. This is called after |
| 154 // regular instance shutdown so the out-of-process code can clean up its | 155 // regular instance shutdown so the out-of-process code can clean up its |
| 155 // tracking information. | 156 // tracking information. |
| 156 virtual void RemoveInstance(PP_Instance instance) = 0; | 157 virtual void RemoveInstance(PP_Instance instance) = 0; |
| 158 |
| 159 virtual base::ProcessId GetPeerProcessId() = 0; |
| 157 }; | 160 }; |
| 158 | 161 |
| 159 // Represents an image. This is to allow the browser layer to supply a correct | 162 // Represents an image. This is to allow the browser layer to supply a correct |
| 160 // image representation. In Chrome, this will be a TransportDIB. | 163 // image representation. In Chrome, this will be a TransportDIB. |
| 161 class PlatformImage2D { | 164 class PlatformImage2D { |
| 162 public: | 165 public: |
| 163 virtual ~PlatformImage2D() {} | 166 virtual ~PlatformImage2D() {} |
| 164 | 167 |
| 165 // Caller will own the returned pointer, returns NULL on failure. | 168 // Caller will own the returned pointer, returns NULL on failure. |
| 166 virtual SkCanvas* Map() = 0; | 169 virtual SkCanvas* Map() = 0; |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 const EnumerateDevicesCallback& callback) = 0; | 673 const EnumerateDevicesCallback& callback) = 0; |
| 671 // Stop enumerating devices of the specified |request_id|. The |request_id| | 674 // Stop enumerating devices of the specified |request_id|. The |request_id| |
| 672 // is the return value of EnumerateDevicesCallback. | 675 // is the return value of EnumerateDevicesCallback. |
| 673 virtual void StopEnumerateDevices(int request_id) = 0; | 676 virtual void StopEnumerateDevices(int request_id) = 0; |
| 674 }; | 677 }; |
| 675 | 678 |
| 676 } // namespace ppapi | 679 } // namespace ppapi |
| 677 } // namespace webkit | 680 } // namespace webkit |
| 678 | 681 |
| 679 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 682 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |