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

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

Issue 2510083003: PlzNavigate: properly update NavigationHandle for 204/205 and download responses (Closed)
Patch Set: . Created 4 years 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 2014 The Chromium Authors. All rights reserved. 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 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_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 // Notifies |loader_| on the UI thread that the request was redirected. 57 // Notifies |loader_| on the UI thread that the request was redirected.
58 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, 58 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info,
59 ResourceResponse* response); 59 ResourceResponse* response);
60 60
61 // Notifies |loader_| on the UI thread that the response started. 61 // Notifies |loader_| on the UI thread that the response started.
62 void NotifyResponseStarted(ResourceResponse* response, 62 void NotifyResponseStarted(ResourceResponse* response,
63 std::unique_ptr<StreamHandle> body, 63 std::unique_ptr<StreamHandle> body,
64 const SSLStatus& ssl_status, 64 const SSLStatus& ssl_status,
65 std::unique_ptr<NavigationData> navigation_data); 65 std::unique_ptr<NavigationData> navigation_data,
66 bool is_download);
66 67
67 // Notifies |loader_| on the UI thread that the request failed. 68 // Notifies |loader_| on the UI thread that the request failed.
68 void NotifyRequestFailed(bool in_cache, int net_error); 69 void NotifyRequestFailed(bool in_cache, int net_error);
69 70
70 private: 71 private:
71 base::WeakPtr<NavigationURLLoaderImpl> loader_; 72 base::WeakPtr<NavigationURLLoaderImpl> loader_;
72 NavigationResourceHandler* resource_handler_; 73 NavigationResourceHandler* resource_handler_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); 75 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore);
75 }; 76 };
76 77
77 } // namespace content 78 } // namespace content
78 79
79 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 80 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698