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

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

Issue 9968097: Browser Plugin: Renderer-side changes (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated after merging with ToT Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set 90 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set
91 // to false and the caller may want to fall back on creating an NPAPI plugin. 91 // to false and the caller may want to fall back on creating an NPAPI plugin.
92 // the second is that the plugin failed to initialize. In this case, 92 // the second is that the plugin failed to initialize. In this case,
93 // |*pepper_plugin_was_registered| will be set to true and the caller should 93 // |*pepper_plugin_was_registered| will be set to true and the caller should
94 // not fall back on any other plugin types. 94 // not fall back on any other plugin types.
95 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule> 95 CONTENT_EXPORT scoped_refptr<webkit::ppapi::PluginModule>
96 CreatePepperPluginModule( 96 CreatePepperPluginModule(
97 const webkit::WebPluginInfo& webplugin_info, 97 const webkit::WebPluginInfo& webplugin_info,
98 bool* pepper_plugin_was_registered); 98 bool* pepper_plugin_was_registered);
99 99
100 // Creates a browser plugin instance given the process handle, and channel
101 // handle to access the guest renderer.
102 // If the plugin fails to initialize then the scoped_refptr will point
jam 2012/05/16 02:22:40 nit: just say will return NULL
Fady Samuel 2012/05/16 04:43:54 Done.
103 // to NULL.
104 scoped_refptr<webkit::ppapi::PluginModule>
105 CreateBrowserPluginModule(
jam 2012/05/16 02:22:40 need to tab here, although it looks like you can f
Fady Samuel 2012/05/16 04:43:54 Done.
106 const IPC::ChannelHandle& channel_handle,
107 int guest_process_id);
108
100 // Called by RenderView to tell us about painting events, these two functions 109 // Called by RenderView to tell us about painting events, these two functions
101 // just correspond to the WillInitiatePaint, DidInitiatePaint and 110 // just correspond to the WillInitiatePaint, DidInitiatePaint and
102 // DidFlushPaint hooks in RenderView. 111 // DidFlushPaint hooks in RenderView.
103 void ViewWillInitiatePaint(); 112 void ViewWillInitiatePaint();
104 void ViewInitiatedPaint(); 113 void ViewInitiatedPaint();
105 void ViewFlushedPaint(); 114 void ViewFlushedPaint();
106 115
107 // Called by RenderView to implement the corresponding function in its base 116 // Called by RenderView to implement the corresponding function in its base
108 // class RenderWidget (see that for more). 117 // class RenderWidget (see that for more).
109 webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( 118 webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint(
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 503
495 scoped_ptr<PepperDeviceEnumerationEventHandler> 504 scoped_ptr<PepperDeviceEnumerationEventHandler>
496 device_enumeration_event_handler_; 505 device_enumeration_event_handler_;
497 506
498 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 507 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
499 }; 508 };
500 509
501 } // namespace content 510 } // namespace content
502 511
503 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 512 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698