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

Side by Side Diff: content/renderer/pepper/pepper_webplugin_impl.cc

Issue 1426923007: Remove PluginLoadObserver and related logic, it was only used for NPAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « content/renderer/pepper/pepper_webplugin_impl.h ('k') | content/renderer/render_frame_impl.h » ('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 #include "content/renderer/pepper/pepper_webplugin_impl.h" 5 #include "content/renderer/pepper/pepper_webplugin_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/debug/crash_logging.h" 9 #include "base/debug/crash_logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 document_loader->didFinishLoading( 247 document_loader->didFinishLoading(
248 NULL, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength); 248 NULL, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength);
249 } 249 }
250 250
251 void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) { 251 void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) {
252 blink::WebURLLoaderClient* document_loader = instance_->document_loader(); 252 blink::WebURLLoaderClient* document_loader = instance_->document_loader();
253 if (document_loader) 253 if (document_loader)
254 document_loader->didFail(NULL, error); 254 document_loader->didFail(NULL, error);
255 } 255 }
256 256
257 void PepperWebPluginImpl::didFinishLoadingFrameRequest(const blink::WebURL& url,
258 void* notify_data) {}
259
260 void PepperWebPluginImpl::didFailLoadingFrameRequest(
261 const blink::WebURL& url,
262 void* notify_data,
263 const blink::WebURLError& error) {}
264
265 bool PepperWebPluginImpl::hasSelection() const { 257 bool PepperWebPluginImpl::hasSelection() const {
266 return !selectionAsText().isEmpty(); 258 return !selectionAsText().isEmpty();
267 } 259 }
268 260
269 WebString PepperWebPluginImpl::selectionAsText() const { 261 WebString PepperWebPluginImpl::selectionAsText() const {
270 return instance_->GetSelectedText(false); 262 return instance_->GetSelectedText(false);
271 } 263 }
272 264
273 WebString PepperWebPluginImpl::selectionAsMarkup() const { 265 WebString PepperWebPluginImpl::selectionAsMarkup() const {
274 return instance_->GetSelectedText(true); 266 return instance_->GetSelectedText(true);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 307
316 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } 308 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); }
317 309
318 void PepperWebPluginImpl::rotateView(RotationType type) { 310 void PepperWebPluginImpl::rotateView(RotationType type) {
319 instance_->RotateView(type); 311 instance_->RotateView(type);
320 } 312 }
321 313
322 bool PepperWebPluginImpl::isPlaceholder() { return false; } 314 bool PepperWebPluginImpl::isPlaceholder() { return false; }
323 315
324 } // namespace content 316 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_webplugin_impl.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698