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

Side by Side Diff: webkit/plugins/npapi/webplugin_delegate_impl.h

Issue 9004051: Replace MessageLoop::DeleteSoon implementation with one that uses base::Bind. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/task.h" 13 #include "base/message_loop_helpers.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "base/timer.h" 15 #include "base/timer.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "third_party/npapi/bindings/npapi.h" 17 #include "third_party/npapi/bindings/npapi.h"
18 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
19 #include "ui/gfx/rect.h" 19 #include "ui/gfx/rect.h"
20 #include "webkit/plugins/npapi/webplugin_delegate.h" 20 #include "webkit/plugins/npapi/webplugin_delegate.h"
21 #include "webkit/glue/webcursor.h" 21 #include "webkit/glue/webcursor.h"
22 #include "webkit/plugins/webkit_plugins_export.h" 22 #include "webkit/plugins/webkit_plugins_export.h"
23 23
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 void set_windowed_handle(gfx::PluginWindowHandle handle); 224 void set_windowed_handle(gfx::PluginWindowHandle handle);
225 #endif 225 #endif
226 226
227 #if defined(USE_X11) 227 #if defined(USE_X11)
228 void SetWindowlessShmPixmap(XID shm_pixmap) { 228 void SetWindowlessShmPixmap(XID shm_pixmap) {
229 windowless_shm_pixmap_ = shm_pixmap; 229 windowless_shm_pixmap_ = shm_pixmap;
230 } 230 }
231 #endif 231 #endif
232 232
233 private: 233 private:
234 friend class DeleteTask<WebPluginDelegateImpl>; 234 friend class base::DeleteHelper<WebPluginDelegateImpl>;
235 friend class WebPluginDelegate; 235 friend class WebPluginDelegate;
236 236
237 WebPluginDelegateImpl(gfx::PluginWindowHandle containing_view, 237 WebPluginDelegateImpl(gfx::PluginWindowHandle containing_view,
238 PluginInstance* instance); 238 PluginInstance* instance);
239 virtual ~WebPluginDelegateImpl(); 239 virtual ~WebPluginDelegateImpl();
240 240
241 // Called by Initialize() for platform-specific initialization. 241 // Called by Initialize() for platform-specific initialization.
242 // If this returns false, the plugin shouldn't be started--see Initialize(). 242 // If this returns false, the plugin shouldn't be started--see Initialize().
243 bool PlatformInitialize(); 243 bool PlatformInitialize();
244 244
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 // True if NPP_New did not return an error. 553 // True if NPP_New did not return an error.
554 bool creation_succeeded_; 554 bool creation_succeeded_;
555 555
556 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); 556 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl);
557 }; 557 };
558 558
559 } // namespace npapi 559 } // namespace npapi
560 } // namespace webkit 560 } // namespace webkit
561 561
562 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ 562 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_getter.h ('k') | webkit/plugins/ppapi/ppapi_webplugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698