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

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

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, 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "chrome/renderer/plugins/webview_plugin.h" 5 #include "chrome/renderer/plugins/webview_plugin.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "skia/ext/platform_canvas.h" 9 #include "skia/ext/platform_canvas.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 delegate_ = NULL; 107 delegate_ = NULL;
108 } 108 }
109 container_ = NULL; 109 container_ = NULL;
110 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); 110 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
111 } 111 }
112 112
113 NPObject* WebViewPlugin::scriptableObject() { 113 NPObject* WebViewPlugin::scriptableObject() {
114 return NULL; 114 return NULL;
115 } 115 }
116 116
117 struct _NPP* WebViewPlugin::pluginNPP() {
118 return NULL;
119 }
120
117 bool WebViewPlugin::getFormValue(WebString& value) { 121 bool WebViewPlugin::getFormValue(WebString& value) {
118 return false; 122 return false;
119 } 123 }
120 124
121 void WebViewPlugin::paint(WebCanvas* canvas, const WebRect& rect) { 125 void WebViewPlugin::paint(WebCanvas* canvas, const WebRect& rect) {
122 gfx::Rect paint_rect = gfx::IntersectRects(rect_, rect); 126 gfx::Rect paint_rect = gfx::IntersectRects(rect_, rect);
123 if (paint_rect.IsEmpty()) 127 if (paint_rect.IsEmpty())
124 return; 128 return;
125 129
126 paint_rect.Offset(-rect_.x(), -rect_.y()); 130 paint_rect.Offset(-rect_.x(), -rect_.y());
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 error.reason = -1; 240 error.reason = -1;
237 error.unreachableURL = request.url(); 241 error.unreachableURL = request.url();
238 return error; 242 return error;
239 } 243 }
240 244
241 void WebViewPlugin::didReceiveResponse(WebFrame* frame, 245 void WebViewPlugin::didReceiveResponse(WebFrame* frame,
242 unsigned identifier, 246 unsigned identifier,
243 const WebURLResponse& response) { 247 const WebURLResponse& response) {
244 WebFrameClient::didReceiveResponse(frame, identifier, response); 248 WebFrameClient::didReceiveResponse(frame, identifier, response);
245 } 249 }
OLDNEW
« no previous file with comments | « chrome/renderer/plugins/webview_plugin.h ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698