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

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.h

Issue 11140046: Add a content API to connect a Native Client module to an out-of-process PPAPI proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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
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 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 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 27 matching lines...) Expand all
38 class Rect; 38 class Rect;
39 } 39 }
40 40
41 namespace IPC { 41 namespace IPC {
42 struct ChannelHandle; 42 struct ChannelHandle;
43 } 43 }
44 44
45 namespace ppapi { 45 namespace ppapi {
46 class PepperFilePath; 46 class PepperFilePath;
47 class PPB_X509Certificate_Fields; 47 class PPB_X509Certificate_Fields;
48 class PpapiPermissions;
48 } 49 }
49 50
50 namespace ui { 51 namespace ui {
51 class Range; 52 class Range;
52 } 53 }
53 54
54 namespace webkit { 55 namespace webkit {
55 struct WebPluginInfo; 56 struct WebPluginInfo;
56 namespace ppapi { 57 namespace ppapi {
57 class PluginInstance; 58 class PluginInstance;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set 92 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set
92 // to false and the caller may want to fall back on creating an NPAPI plugin. 93 // to false and the caller may want to fall back on creating an NPAPI plugin.
93 // the second is that the plugin failed to initialize. In this case, 94 // the second is that the plugin failed to initialize. In this case,
94 // |*pepper_plugin_was_registered| will be set to true and the caller should 95 // |*pepper_plugin_was_registered| will be set to true and the caller should
95 // not fall back on any other plugin types. 96 // not fall back on any other plugin types.
96 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> 97 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule>
97 CreatePepperPluginModule( 98 CreatePepperPluginModule(
98 const webkit::WebPluginInfo& webplugin_info, 99 const webkit::WebPluginInfo& webplugin_info,
99 bool* pepper_plugin_was_registered); 100 bool* pepper_plugin_was_registered);
100 101
102 // Creates a plugin module for the untrusted NaCl plugin and resets the
103 // instance to use the out-of-process proxy.
104 // If the plugin fails to initialize then return NULL.
105 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule>
106 CreateNaClPluginModule(
107 webkit::ppapi::PluginInstance* plugin_instance,
108 ppapi::PpapiPermissions permissions,
109 const IPC::ChannelHandle& channel_handle,
110 int nacl_process_id);
111
101 // Creates a browser plugin instance given the process handle, and channel 112 // Creates a browser plugin instance given the process handle, and channel
102 // handle to access the guest renderer. 113 // handle to access the guest renderer.
103 // If the plugin fails to initialize then return NULL. 114 // If the plugin fails to initialize then return NULL.
104 scoped_refptr<webkit::ppapi::PluginModule> CreateBrowserPluginModule( 115 scoped_refptr<webkit::ppapi::PluginModule> CreateBrowserPluginModule(
105 const IPC::ChannelHandle& channel_handle, 116 const IPC::ChannelHandle& channel_handle,
106 int guest_process_id); 117 int guest_process_id);
107 118
108 // Called by RenderView to tell us about painting events, these two functions 119 // Called by RenderView to tell us about painting events, these two functions
109 // just correspond to the WillInitiatePaint, DidInitiatePaint and 120 // just correspond to the WillInitiatePaint, DidInitiatePaint and
110 // DidFlushPaint hooks in RenderView. 121 // DidFlushPaint hooks in RenderView.
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 541
531 scoped_ptr<PepperDeviceEnumerationEventHandler> 542 scoped_ptr<PepperDeviceEnumerationEventHandler>
532 device_enumeration_event_handler_; 543 device_enumeration_event_handler_;
533 544
534 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 545 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
535 }; 546 };
536 547
537 } // namespace content 548 } // namespace content
538 549
539 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 550 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698