Save errno for logging before potentially overwriting it.
[chromium-blink-merge.git] / content / public / browser / stream_handle.h
blob621b777dc896bff844b00d71785fd38c915f2ba3
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
6 #define CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_
8 #include "base/callback.h"
9 #include "content/common/content_export.h"
10 #include "googleurl/src/gurl.h"
12 namespace content {
14 class CONTENT_EXPORT StreamHandle {
15 public:
16 virtual ~StreamHandle() {}
18 // Gets the URL the stream can be read from.
19 virtual const GURL& GetURL() = 0;
21 // Gets the original URL being redirected to this Stream.
22 virtual const GURL& GetOriginalURL() = 0;
24 // Get the MIME type associated with this Stream.
25 virtual const std::string& GetMimeType() = 0;
28 } // namespace content
30 #endif // CONTENT_PUBLIC_BROWSER_STREAM_HANDLE_H_