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 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // calls so the out-of-process code can set up the tracking information for | 155 // calls so the out-of-process code can set up the tracking information for |
156 // the new instance. | 156 // the new instance. |
157 virtual void AddInstance(PP_Instance instance) = 0; | 157 virtual void AddInstance(PP_Instance instance) = 0; |
158 | 158 |
159 // Like AddInstance but removes the given instance. This is called after | 159 // Like AddInstance but removes the given instance. This is called after |
160 // regular instance shutdown so the out-of-process code can clean up its | 160 // regular instance shutdown so the out-of-process code can clean up its |
161 // tracking information. | 161 // tracking information. |
162 virtual void RemoveInstance(PP_Instance instance) = 0; | 162 virtual void RemoveInstance(PP_Instance instance) = 0; |
163 | 163 |
164 virtual base::ProcessId GetPeerProcessId() = 0; | 164 virtual base::ProcessId GetPeerProcessId() = 0; |
| 165 virtual int GetPluginChildId() = 0; |
165 }; | 166 }; |
166 | 167 |
167 // Represents an image. This is to allow the browser layer to supply a correct | 168 // Represents an image. This is to allow the browser layer to supply a correct |
168 // image representation. In Chrome, this will be a TransportDIB. | 169 // image representation. In Chrome, this will be a TransportDIB. |
169 class PlatformImage2D { | 170 class PlatformImage2D { |
170 public: | 171 public: |
171 virtual ~PlatformImage2D() {} | 172 virtual ~PlatformImage2D() {} |
172 | 173 |
173 // Caller will own the returned pointer, returns NULL on failure. | 174 // Caller will own the returned pointer, returns NULL on failure. |
174 virtual SkCanvas* Map() = 0; | 175 virtual SkCanvas* Map() = 0; |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 // The loader object should set itself on the PluginInstance as the document | 699 // The loader object should set itself on the PluginInstance as the document |
699 // loader using set_document_loader. | 700 // loader using set_document_loader. |
700 virtual void HandleDocumentLoad(PluginInstance* instance, | 701 virtual void HandleDocumentLoad(PluginInstance* instance, |
701 const WebKit::WebURLResponse& response) = 0; | 702 const WebKit::WebURLResponse& response) = 0; |
702 }; | 703 }; |
703 | 704 |
704 } // namespace ppapi | 705 } // namespace ppapi |
705 } // namespace webkit | 706 } // namespace webkit |
706 | 707 |
707 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 708 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |