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

Unified Diff: content/child/npapi/plugin_stream.h

Issue 23503043: Load NPAPI plugin resources through the browser process directly instead of going through the render (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/child/npapi/plugin_stream.h
===================================================================
--- content/child/npapi/plugin_stream.h (revision 222566)
+++ content/child/npapi/plugin_stream.h (working copy)
@@ -29,10 +29,6 @@
bool need_notify,
void* notify_data);
- // In case of a redirect, this can be called to update the url. But it must
- // be called before Open().
- void UpdateUrl(const char* url);
-
// Opens the stream to the Plugin.
// If the mime-type is not specified, we'll try to find one based on the
// mime-types table and the extension (if any) in the URL.
@@ -63,8 +59,10 @@
// Cancels any HTTP requests initiated by the stream.
virtual void CancelRequest() {}
- const NPStream* stream() const { return &stream_; }
+ NPStream* stream() { return &stream_; }
+ PluginInstance* instance() { return instance_.get(); }
+
// setter/getter for the seekable attribute on the stream.
bool seekable() const { return seekable_stream_; }
@@ -75,23 +73,14 @@
void* notify_data() const { return notify_data_; }
- std::string pending_redirect_url() const { return pending_redirect_url_; }
-
protected:
friend class base::RefCounted<PluginStream>;
virtual ~PluginStream();
- PluginInstance* instance() { return instance_.get(); }
-
// Check if the stream is open.
bool open() { return opened_; }
- // If the plugin participates in HTTP URL redirect handling then this member
- // holds the url being redirected to while we wait for the plugin to make a
- // decision on whether to allow or deny the redirect.
- std::string pending_redirect_url_;
-
private:
// Per platform method to reset the temporary file handle.
void ResetTempFileHandle();

Powered by Google App Engine
This is Rietveld 408576698