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

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

Issue 435044: Send resource load notifications from plugins to devtools agent (Closed)
Patch Set: Sync with trunk Created 11 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 | « webkit/glue/plugins/plugin_stream_url.h ('k') | webkit/glue/plugins/webplugin_delegate_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 #include "webkit/glue/plugins/plugin_stream_url.h" 5 #include "webkit/glue/plugins/plugin_stream_url.h"
6 6
7 #include "webkit/glue/glue_util.h" 7 #include "webkit/glue/glue_util.h"
8 #include "webkit/glue/webplugin.h" 8 #include "webkit/glue/webplugin.h"
9 #include "webkit/glue/plugins/plugin_host.h" 9 #include "webkit/glue/plugins/plugin_host.h"
10 #include "webkit/glue/plugins/plugin_instance.h" 10 #include "webkit/glue/plugins/plugin_instance.h"
11 11
12 namespace NPAPI { 12 namespace NPAPI {
13 13
14 PluginStreamUrl::PluginStreamUrl( 14 PluginStreamUrl::PluginStreamUrl(
15 int resource_id, 15 unsigned long resource_id,
16 const GURL &url, 16 const GURL &url,
17 PluginInstance *instance, 17 PluginInstance *instance,
18 bool notify_needed, 18 bool notify_needed,
19 void *notify_data) 19 void *notify_data)
20 : PluginStream(instance, url.spec().c_str(), notify_needed, notify_data), 20 : PluginStream(instance, url.spec().c_str(), notify_needed, notify_data),
21 url_(url), 21 url_(url),
22 id_(resource_id) { 22 id_(resource_id) {
23 } 23 }
24 24
25 PluginStreamUrl::~PluginStreamUrl() { 25 PluginStreamUrl::~PluginStreamUrl() {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void PluginStreamUrl::CancelRequest() { 98 void PluginStreamUrl::CancelRequest() {
99 if (id_ > 0) { 99 if (id_ > 0) {
100 if (instance()->webplugin()) { 100 if (instance()->webplugin()) {
101 instance()->webplugin()->CancelResource(id_); 101 instance()->webplugin()->CancelResource(id_);
102 } 102 }
103 id_ = 0; 103 id_ = 0;
104 } 104 }
105 } 105 }
106 106
107 } // namespace NPAPI 107 } // namespace NPAPI
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_stream_url.h ('k') | webkit/glue/plugins/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698