OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_STREAM_INFO_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_STREAM_INFO_H_ | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "content/common/content_export.h" | |
11 #include "url/gurl.h" | |
12 | |
13 namespace content { | |
14 | |
15 class StreamHandle; | |
16 struct ResourceResponse; | |
17 | |
18 // A convenience structure for passing around both a StreamHandle and associated | |
19 // metadata. The intent is so, when passing the stream's URL to a child process, | |
20 // the handle can be retained as long as it is needed while the rest of the | |
21 // StreamInfo is released. | |
22 struct CONTENT_EXPORT StreamInfo { | |
23 StreamInfo(); | |
24 ~StreamInfo(); | |
25 | |
26 // The handle to the stream itself. | |
27 scoped_ptr<StreamHandle> handle; | |
28 | |
29 // The original redirected to this Stream. | |
30 GURL original_url; | |
31 | |
32 // The ResourceResponse associated with this Stream. | |
33 scoped_refptr<ResourceResponse> response; | |
34 }; | |
Zachary Kuznia
2014/09/12 21:14:19
DISALLOW_COPY_AND_ASSIGN(StreamInfo)
davidben
2014/09/19 18:30:50
Done.
| |
35 | |
36 } // namespace content | |
37 | |
38 #endif // CONTENT_PUBLIC_BROWSER_STREAM_INFO_H_ | |
OLD | NEW |