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

Side by Side Diff: content/browser/loader/stream_resource_handler.h

Issue 2847443002: PlzNavigate: make NavigationResourceHandler a LayeredResourceHandler (Closed)
Patch Set: Addressed comments Created 3 years, 7 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 class StreamRegistry; 22 class StreamRegistry;
23 23
24 // Redirect this resource to a stream. 24 // Redirect this resource to a stream.
25 class StreamResourceHandler : public ResourceHandler { 25 class StreamResourceHandler : public ResourceHandler {
26 public: 26 public:
27 // |origin| will be used to construct the URL for the Stream. See 27 // |origin| will be used to construct the URL for the Stream. See
28 // WebCore::BlobURL and and WebCore::SecurityOrigin in Blink to understand 28 // WebCore::BlobURL and and WebCore::SecurityOrigin in Blink to understand
29 // how origin check is done on resource loading. 29 // how origin check is done on resource loading.
30 StreamResourceHandler(net::URLRequest* request, 30 StreamResourceHandler(net::URLRequest* request,
31 StreamRegistry* registry, 31 StreamRegistry* registry,
32 const GURL& origin); 32 const GURL& origin,
33 bool immediate_mode);
33 ~StreamResourceHandler() override; 34 ~StreamResourceHandler() override;
34 35
35 // Not needed, as this event handler ought to be the final resource. 36 // Not needed, as this event handler ought to be the final resource.
36 void OnRequestRedirected( 37 void OnRequestRedirected(
37 const net::RedirectInfo& redirect_info, 38 const net::RedirectInfo& redirect_info,
38 ResourceResponse* resp, 39 ResourceResponse* resp,
39 std::unique_ptr<ResourceController> controller) override; 40 std::unique_ptr<ResourceController> controller) override;
40 41
41 void OnResponseStarted( 42 void OnResponseStarted(
42 ResourceResponse* resp, 43 ResourceResponse* resp,
(...skipping 21 matching lines...) Expand all
64 65
65 private: 66 private:
66 StreamWriter writer_; 67 StreamWriter writer_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(StreamResourceHandler); 69 DISALLOW_COPY_AND_ASSIGN(StreamResourceHandler);
69 }; 70 };
70 71
71 } // namespace content 72 } // namespace content
72 73
73 #endif // CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ 74 #endif // CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_unittest.cc ('k') | content/browser/loader/stream_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698