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

Unified Diff: content/child/npapi/plugin_string_stream.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 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_string_stream.h ('k') | content/child/npapi/plugin_url_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/plugin_string_stream.cc
diff --git a/content/child/npapi/plugin_string_stream.cc b/content/child/npapi/plugin_string_stream.cc
deleted file mode 100644
index 15f38adbf4f85b6cd761832a45be3b9df5c6e4a1..0000000000000000000000000000000000000000
--- a/content/child/npapi/plugin_string_stream.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2010 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.
-
-#include "content/child/npapi/plugin_string_stream.h"
-
-#include "url/gurl.h"
-
-namespace content {
-
-PluginStringStream::PluginStringStream(
- PluginInstance* instance,
- const GURL& url,
- bool notify_needed,
- void* notify_data)
- : PluginStream(instance, url.spec().c_str(), notify_needed, notify_data) {
-}
-
-PluginStringStream::~PluginStringStream() {
-}
-
-void PluginStringStream::SendToPlugin(const std::string &data,
- const std::string &mime_type) {
- // Protect the stream against it being destroyed or the whole plugin instance
- // being destroyed within the plugin stream callbacks.
- scoped_refptr<PluginStringStream> protect(this);
-
- int length = static_cast<int>(data.length());
- if (Open(mime_type, std::string(), length, 0, false)) {
- // TODO - check if it was not fully sent, and figure out a backup plan.
- int written = Write(data.c_str(), length, 0);
- NPReason reason = written == length ? NPRES_DONE : NPRES_NETWORK_ERR;
- Close(reason);
- }
-}
-
-} // namespace content
« no previous file with comments | « content/child/npapi/plugin_string_stream.h ('k') | content/child/npapi/plugin_url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698