Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(769)

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 15947004: Allow renderer to create pepper ResourceHosts in the browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | webkit/plugins/ppapi/plugin_module.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | webkit/plugins/ppapi/plugin_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698