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

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

Issue 10383059: Terminate plugins as well as runing onunload handlers during slow shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | 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_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Returns the PP_Instance uniquely identifying this instance. Guaranteed 118 // Returns the PP_Instance uniquely identifying this instance. Guaranteed
119 // nonzero. 119 // nonzero.
120 PP_Instance pp_instance() const { return pp_instance_; } 120 PP_Instance pp_instance() const { return pp_instance_; }
121 121
122 ResourceCreationImpl& resource_creation() { return resource_creation_; } 122 ResourceCreationImpl& resource_creation() { return resource_creation_; }
123 123
124 // Does some pre-destructor cleanup on the instance. This is necessary 124 // Does some pre-destructor cleanup on the instance. This is necessary
125 // because some cleanup depends on the plugin instance still existing (like 125 // because some cleanup depends on the plugin instance still existing (like
126 // calling the plugin's DidDestroy function). This function is called from 126 // calling the plugin's DidDestroy function). This function is called from
127 // the WebPlugin implementation when WebKit is about to remove the plugin. 127 // the WebPlugin implementation when WebKit is about to remove the plugin,
128 // and may also be called directly by RenderViewImpl when a clean wekbit
129 // shutdown is being skipped.
128 void Delete(); 130 void Delete();
129 131
130 // Paints the current backing store to the web page. 132 // Paints the current backing store to the web page.
131 void Paint(WebKit::WebCanvas* canvas, 133 void Paint(WebKit::WebCanvas* canvas,
132 const gfx::Rect& plugin_rect, 134 const gfx::Rect& plugin_rect,
133 const gfx::Rect& paint_rect); 135 const gfx::Rect& paint_rect);
134 136
135 // Schedules a paint of the page for the given region. The coordinates are 137 // Schedules a paint of the page for the given region. The coordinates are
136 // relative to the top-left of the plugin. This does nothing if the plugin 138 // relative to the top-left of the plugin. This does nothing if the plugin
137 // has not yet been positioned. You can supply an empty gfx::Rect() to 139 // has not yet been positioned. You can supply an empty gfx::Rect() to
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 // The Flash proxy is associated with the instance. 644 // The Flash proxy is associated with the instance.
643 PPB_Flash_Impl flash_impl_; 645 PPB_Flash_Impl flash_impl_;
644 646
645 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 647 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
646 }; 648 };
647 649
648 } // namespace ppapi 650 } // namespace ppapi
649 } // namespace webkit 651 } // namespace webkit
650 652
651 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 653 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698