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

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

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/npapi/plugin_stream_posix.cc ('k') | content/child/npapi/plugin_stream_url.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/plugin_stream_url.h
diff --git a/content/child/npapi/plugin_stream_url.h b/content/child/npapi/plugin_stream_url.h
deleted file mode 100644
index dea2fe4d52ca717ee9d35c7da8d36c0e89c9b61b..0000000000000000000000000000000000000000
--- a/content/child/npapi/plugin_stream_url.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_CHILD_NPAPI_PLUGIN_STREAM_URL_H_
-#define CONTENT_CHILD_NPAPI_PLUGIN_STREAM_URL_H_
-
-#include <vector>
-
-#include "base/memory/scoped_ptr.h"
-#include "content/child/npapi/plugin_stream.h"
-#include "content/child/npapi/webplugin_resource_client.h"
-#include "url/gurl.h"
-
-namespace content {
-class PluginInstance;
-class PluginURLFetcher;
-
-// A NPAPI Stream based on a URL.
-class PluginStreamUrl : public PluginStream,
- public WebPluginResourceClient {
- public:
- // Create a new stream for sending to the plugin by fetching
- // a URL. If notifyNeeded is set, then the plugin will be notified
- // when the stream has been fully sent to the plugin. Initialize
- // must be called before the object is used.
- PluginStreamUrl(unsigned long resource_id,
- const GURL &url,
- PluginInstance *instance,
- bool notify_needed,
- void *notify_data);
-
- void SetPluginURLFetcher(PluginURLFetcher* fetcher);
-
- void URLRedirectResponse(bool allow);
-
- void FetchRange(const std::string& range);
-
- // Stop sending the stream to the client.
- // Overrides the base Close so we can cancel our fetching the URL if
- // it is still loading.
- bool Close(NPReason reason) override;
- WebPluginResourceClient* AsResourceClient() override;
- void CancelRequest() override;
-
- // WebPluginResourceClient methods
- void WillSendRequest(const GURL& url, int http_status_code) override;
- void DidReceiveResponse(const std::string& mime_type,
- const std::string& headers,
- uint32 expected_length,
- uint32 last_modified,
- bool request_is_seekable) override;
- void DidReceiveData(const char* buffer, int length, int data_offset) override;
- void DidFinishLoading(unsigned long resource_id) override;
- void DidFail(unsigned long resource_id) override;
- bool IsMultiByteResponseExpected() override;
- int ResourceId() override;
- void AddRangeRequestResourceId(unsigned long resource_id) override;
-
- protected:
- ~PluginStreamUrl() override;
-
- private:
- void SetDeferLoading(bool value);
-
- // 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);
-
- GURL url_;
- unsigned long id_;
-
- // Ids of additional resources requested via range requests issued on
- // seekable streams.
- // This is used when we're loading resources through the renderer, i.e. not
- // using plugin_url_fetcher_.
- std::vector<unsigned long> range_requests_;
- // This is used when we're using plugin_url_fetcher_.
- std::vector<PluginURLFetcher*> range_request_fetchers_;
-
- // 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_;
-
- scoped_ptr<PluginURLFetcher> plugin_url_fetcher_;
-
- DISALLOW_COPY_AND_ASSIGN(PluginStreamUrl);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_NPAPI_PLUGIN_STREAM_URL_H_
« no previous file with comments | « content/child/npapi/plugin_stream_posix.cc ('k') | content/child/npapi/plugin_stream_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698