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

Side by Side Diff: chrome/renderer/plugins/webview_plugin.h

Issue 15941006: Track NPObject ownership by the originating plugins' NPP identifier. [2/3] (Chrome) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CppBoundClass. Created 7 years, 6 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 | « no previous file | chrome/renderer/plugins/webview_plugin.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) 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 CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_ 5 #ifndef CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_
6 #define CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_ 6 #define CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void ReplayReceivedData(WebKit::WebPlugin* plugin); 67 void ReplayReceivedData(WebKit::WebPlugin* plugin);
68 68
69 void RestoreTitleText(); 69 void RestoreTitleText();
70 70
71 // WebPlugin methods: 71 // WebPlugin methods:
72 virtual WebKit::WebPluginContainer* container() const; 72 virtual WebKit::WebPluginContainer* container() const;
73 virtual bool initialize(WebKit::WebPluginContainer*); 73 virtual bool initialize(WebKit::WebPluginContainer*);
74 virtual void destroy(); 74 virtual void destroy();
75 75
76 virtual NPObject* scriptableObject(); 76 virtual NPObject* scriptableObject();
77 virtual struct _NPP* pluginNPP();
78
77 virtual bool getFormValue(WebKit::WebString& value); 79 virtual bool getFormValue(WebKit::WebString& value);
78 80
79 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); 81 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect);
80 82
81 // Coordinates are relative to the containing window. 83 // Coordinates are relative to the containing window.
82 virtual void updateGeometry( 84 virtual void updateGeometry(
83 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect, 85 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect,
84 const WebKit::WebVector<WebKit::WebRect>& cut_out_rects, bool is_visible); 86 const WebKit::WebVector<WebKit::WebRect>& cut_out_rects, bool is_visible);
85 87
86 virtual void updateFocus(bool) {} 88 virtual void updateFocus(bool) {}
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 gfx::Rect rect_; 151 gfx::Rect rect_;
150 152
151 WebKit::WebURLResponse response_; 153 WebKit::WebURLResponse response_;
152 std::list<std::string> data_; 154 std::list<std::string> data_;
153 bool finished_loading_; 155 bool finished_loading_;
154 scoped_ptr<WebKit::WebURLError> error_; 156 scoped_ptr<WebKit::WebURLError> error_;
155 WebKit::WebString old_title_; 157 WebKit::WebString old_title_;
156 }; 158 };
157 159
158 #endif // CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_ 160 #endif // CHROME_RENDERER_PLUGINS_WEBVIEW_PLUGIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/plugins/webview_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698