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

Side by Side Diff: webkit/glue/plugins/plugin_stream.cc

Issue 5741001: Even more virtual method deinlining. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (windows) Created 10 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/plugins/plugin_stream.h ('k') | webkit/glue/webmediaplayer_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) 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 // TODO : Support NP_ASFILEONLY mode 5 // TODO : Support NP_ASFILEONLY mode
6 // TODO : Support NP_SEEK mode 6 // TODO : Support NP_SEEK mode
7 // TODO : Support SEEKABLE=true in NewStream 7 // TODO : Support SEEKABLE=true in NewStream
8 8
9 #include "webkit/glue/plugins/plugin_stream.h" 9 #include "webkit/glue/plugins/plugin_stream.h"
10 10
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // Stream hasn't been closed yet. 237 // Stream hasn't been closed yet.
238 NPError err = instance_->NPP_DestroyStream(&stream_, reason); 238 NPError err = instance_->NPP_DestroyStream(&stream_, reason);
239 DCHECK(err == NPERR_NO_ERROR); 239 DCHECK(err == NPERR_NO_ERROR);
240 } 240 }
241 } 241 }
242 242
243 Notify(reason); 243 Notify(reason);
244 return true; 244 return true;
245 } 245 }
246 246
247 webkit_glue::WebPluginResourceClient* PluginStream::AsResourceClient() {
248 return NULL;
249 }
250
247 void PluginStream::Notify(NPReason reason) { 251 void PluginStream::Notify(NPReason reason) {
248 if (notify_needed_) { 252 if (notify_needed_) {
249 instance_->NPP_URLNotify(stream_.url, reason, notify_data_); 253 instance_->NPP_URLNotify(stream_.url, reason, notify_data_);
250 notify_needed_ = false; 254 notify_needed_ = false;
251 } 255 }
252 } 256 }
253 257
254 } // namespace NPAPI 258 } // namespace NPAPI
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_stream.h ('k') | webkit/glue/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698