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

Side by Side Diff: content/public/browser/stream_info.h

Issue 519533002: Initial PlzNavigate RDH-side logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698