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

Unified Diff: ppapi/native_client/src/trusted/plugin/callback_source.h

Issue 393693004: Pepper: Delete FileDownloader in trusted plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: STL fix Created 6 years, 5 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
« no previous file with comments | « ppapi/c/private/ppp_pexe_stream_handler.h ('k') | ppapi/native_client/src/trusted/plugin/file_downloader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/trusted/plugin/callback_source.h
diff --git a/ppapi/native_client/src/trusted/plugin/callback_source.h b/ppapi/native_client/src/trusted/plugin/callback_source.h
deleted file mode 100644
index 928a577edab1917a441778e7808be3a437b1aef4..0000000000000000000000000000000000000000
--- a/ppapi/native_client/src/trusted/plugin/callback_source.h
+++ /dev/null
@@ -1,33 +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 NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_CALLBACK_SOURCE_H
-#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_CALLBACK_SOURCE_H
-
-#include "ppapi/cpp/completion_callback.h"
-
-namespace plugin {
-
-// Classes that implement this interface can be used with FileDownloader's
-// DOWNLOAD_STREAM mode. For each chunk of the file as it downloads,
-// The FileDownloader will get a callback of type
-// pp::CompletionCallbackWithOutput<std::vector<char>*> using the
-// GetCallback function, and call it immediately, passing a pointer to a
-// vector with the data as the output field. The class is templatized just
-// in case there are any other use cases in the future.
-// This class really only exists as a way to get callbacks
-// bound to an object (i.e. we don't need the asynchronous behavior of PPAPI)
-// All we really need is tr1::function or base::bind or some such, but we don't
-// have those in the plugin.
-
-template<class T>
-class CallbackSource {
- public:
- virtual ~CallbackSource();
- // Returns a callback from callback_factory's NewCallbackWithOutput,
- // bound to the implementing object.
- virtual pp::CompletionCallbackWithOutput<T> GetCallback() = 0;
-};
-}
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_CALLBACK_SOURCE_H
« no previous file with comments | « ppapi/c/private/ppp_pexe_stream_handler.h ('k') | ppapi/native_client/src/trusted/plugin/file_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698