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

Side by Side Diff: webkit/glue/webplugin_impl.h

Issue 147251: linux: cleanup browser-side GtkSockets when plugins are destroyed (Closed)
Patch Set: fixed Created 11 years, 5 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
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl_gtk.cc ('k') | webkit/glue/webplugin_impl.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_GLUE_WEBPLUGIN_IMPL_H_ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_
6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ 6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 private: 142 private:
143 friend class WebPluginContainer; 143 friend class WebPluginContainer;
144 144
145 WebPluginImpl(WebCore::HTMLPlugInElement* element, WebFrameImpl* frame, 145 WebPluginImpl(WebCore::HTMLPlugInElement* element, WebFrameImpl* frame,
146 WebPluginDelegate* delegate, const GURL& plugin_url, 146 WebPluginDelegate* delegate, const GURL& plugin_url,
147 bool load_manually, const std::string& mime_type, 147 bool load_manually, const std::string& mime_type,
148 int arg_count, char** arg_names, char** arg_values); 148 int arg_count, char** arg_names, char** arg_values);
149 149
150 // WebPlugin implementation: 150 // WebPlugin implementation:
151 void SetWindow(gfx::PluginWindowHandle window); 151 void SetWindow(gfx::PluginWindowHandle window);
152 void WillDestroyWindow(gfx::PluginWindowHandle window) { } 152 void WillDestroyWindow(gfx::PluginWindowHandle window);
153 #if defined(OS_WIN) 153 #if defined(OS_WIN)
154 void SetWindowlessPumpEvent(HANDLE pump_messages_event) { } 154 void SetWindowlessPumpEvent(HANDLE pump_messages_event) { }
155 #endif 155 #endif
156 156
157 // Given a (maybe partial) url, completes using the base url. 157 // Given a (maybe partial) url, completes using the base url.
158 bool CompleteURL(const std::string& url_in, std::string* url_out); 158 bool CompleteURL(const std::string& url_in, std::string* url_out);
159 159
160 // Executes the script passed in. The notify_needed and notify_data arguments 160 // Executes the script passed in. The notify_needed and notify_data arguments
161 // are passed in by the plugin process. These indicate whether the plugin 161 // are passed in by the plugin process. These indicate whether the plugin
162 // expects a notification on script execution. We pass them back to the 162 // expects a notification on script execution. We pass them back to the
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 365
366 // Holds the list of argument values passed to the plugin. 366 // Holds the list of argument values passed to the plugin.
367 std::vector<std::string> arg_values_; 367 std::vector<std::string> arg_values_;
368 368
369 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; 369 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_;
370 370
371 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); 371 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
372 }; 372 };
373 373
374 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ 374 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl_gtk.cc ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698