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

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, 1 month 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
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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 document_loader->didFinishLoading( 244 document_loader->didFinishLoading(
245 NULL, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength); 245 NULL, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength);
246 } 246 }
247 247
248 void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) { 248 void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) {
249 blink::WebURLLoaderClient* document_loader = instance_->document_loader(); 249 blink::WebURLLoaderClient* document_loader = instance_->document_loader();
250 if (document_loader) 250 if (document_loader)
251 document_loader->didFail(NULL, error); 251 document_loader->didFail(NULL, error);
252 } 252 }
253 253
254 void PepperWebPluginImpl::didFinishLoadingFrameRequest(const blink::WebURL& url,
255 void* notify_data) {}
256
257 void PepperWebPluginImpl::didFailLoadingFrameRequest(
258 const blink::WebURL& url,
259 void* notify_data,
260 const blink::WebURLError& error) {}
261
262 bool PepperWebPluginImpl::hasSelection() const { 254 bool PepperWebPluginImpl::hasSelection() const {
263 return !selectionAsText().isEmpty(); 255 return !selectionAsText().isEmpty();
264 } 256 }
265 257
266 WebString PepperWebPluginImpl::selectionAsText() const { 258 WebString PepperWebPluginImpl::selectionAsText() const {
267 return instance_->GetSelectedText(false); 259 return instance_->GetSelectedText(false);
268 } 260 }
269 261
270 WebString PepperWebPluginImpl::selectionAsMarkup() const { 262 WebString PepperWebPluginImpl::selectionAsMarkup() const {
271 return instance_->GetSelectedText(true); 263 return instance_->GetSelectedText(true);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 304
313 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } 305 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); }
314 306
315 void PepperWebPluginImpl::rotateView(RotationType type) { 307 void PepperWebPluginImpl::rotateView(RotationType type) {
316 instance_->RotateView(type); 308 instance_->RotateView(type);
317 } 309 }
318 310
319 bool PepperWebPluginImpl::isPlaceholder() { return false; } 311 bool PepperWebPluginImpl::isPlaceholder() { return false; }
320 312
321 } // namespace content 313 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698