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

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

Issue 75026: Ensure we check the page pointer before using it after we come out of NPP_Han... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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) 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_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ 5 #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_
6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ 6 #define WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 intptr_t stream); 83 intptr_t stream);
84 84
85 virtual void URLRequestRouted(const std::string&url, bool notify_needed, 85 virtual void URLRequestRouted(const std::string&url, bool notify_needed,
86 intptr_t notify_data); 86 intptr_t notify_data);
87 virtual bool IsWindowless() const { return windowless_ ; } 87 virtual bool IsWindowless() const { return windowless_ ; }
88 virtual const gfx::Rect& GetRect() const { return window_rect_; } 88 virtual const gfx::Rect& GetRect() const { return window_rect_; }
89 virtual const gfx::Rect& GetClipRect() const { return clip_rect_; } 89 virtual const gfx::Rect& GetClipRect() const { return clip_rect_; }
90 virtual int GetQuirks() const { return quirks_; } 90 virtual int GetQuirks() const { return quirks_; }
91 91
92 private: 92 private:
93 friend class DeleteTask<WebPluginDelegateImpl>;
94
93 WebPluginDelegateImpl(gfx::NativeView containing_view, 95 WebPluginDelegateImpl(gfx::NativeView containing_view,
94 NPAPI::PluginInstance *instance); 96 NPAPI::PluginInstance *instance);
95 ~WebPluginDelegateImpl(); 97 ~WebPluginDelegateImpl();
96 98
97 //-------------------------- 99 //--------------------------
98 // used for windowed plugins 100 // used for windowed plugins
99 void WindowedUpdateGeometry(const gfx::Rect& window_rect, 101 void WindowedUpdateGeometry(const gfx::Rect& window_rect,
100 const gfx::Rect& clip_rect); 102 const gfx::Rect& clip_rect);
101 // Create the native window. 103 // Create the native window.
102 // Returns true if the window is created (or already exists). 104 // Returns true if the window is created (or already exists).
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 276
275 // Holds the current cursor set by the windowless plugin. 277 // Holds the current cursor set by the windowless plugin.
276 WebCursor current_windowless_cursor_; 278 WebCursor current_windowless_cursor_;
277 279
278 friend class WebPluginDelegate; 280 friend class WebPluginDelegate;
279 281
280 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateImpl); 282 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateImpl);
281 }; 283 };
282 284
283 #endif // #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_ 285 #endif // #ifndef WEBKIT_GLUE_PLUGIN_WEBPLUGIN_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698