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

Unified Diff: content/public/browser/stream_handle.h

Issue 12645004: Add Resource Handler for creating Streams to forward to extensions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Disable Stream Resource Throttle Created 7 years, 9 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 | « content/public/browser/resource_dispatcher_host_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/stream_handle.h
diff --git a/content/public/browser/stream_handle.h b/content/public/browser/stream_handle.h
new file mode 100644
index 0000000000000000000000000000000000000000..621b777dc896bff844b00d71785fd38c915f2ba3
--- /dev/null
+++ b/content/public/browser/stream_handle.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2013 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_PUBLIC_BROWSER_STREAM_HANDLE_H_
+#define CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
+
+#include "base/callback.h"
+#include "content/common/content_export.h"
+#include "googleurl/src/gurl.h"
+
+namespace content {
+
+class CONTENT_EXPORT StreamHandle {
+ public:
+ virtual ~StreamHandle() {}
+
+ // Gets the URL the stream can be read from.
+ virtual const GURL& GetURL() = 0;
+
+ // Gets the original URL being redirected to this Stream.
+ virtual const GURL& GetOriginalURL() = 0;
+
+ // Get the MIME type associated with this Stream.
+ virtual const std::string& GetMimeType() = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
« no previous file with comments | « content/public/browser/resource_dispatcher_host_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698