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

Side by Side Diff: content/test/test_navigation_url_loader_delegate.h

Issue 2537593002: PlzNavigate: Pass move information along with the response started notification for navigation requ… (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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TEST_TEST_NAVIGATION_URL_LOADER_DELEGATE_H_ 5 #ifndef CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_DELEGATE_H_
6 #define CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_DELEGATE_H_ 6 #define CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void WaitForResponseStarted(); 47 void WaitForResponseStarted();
48 void WaitForRequestFailed(); 48 void WaitForRequestFailed();
49 void WaitForRequestStarted(); 49 void WaitForRequestStarted();
50 50
51 void ReleaseBody(); 51 void ReleaseBody();
52 52
53 // NavigationURLLoaderDelegate implementation. 53 // NavigationURLLoaderDelegate implementation.
54 void OnRequestRedirected( 54 void OnRequestRedirected(
55 const net::RedirectInfo& redirect_info, 55 const net::RedirectInfo& redirect_info,
56 const scoped_refptr<ResourceResponse>& response) override; 56 const scoped_refptr<ResourceResponse>& response) override;
57 void OnResponseStarted( 57 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response,
58 const scoped_refptr<ResourceResponse>& response, 58 std::unique_ptr<StreamHandle> body,
59 std::unique_ptr<StreamHandle> body, 59 const SSLStatus& ssl_status,
60 const SSLStatus& ssl_status, 60 std::unique_ptr<NavigationData> navigation_data,
61 std::unique_ptr<NavigationData> navigation_data) override; 61 const GlobalRequestID& request_id,
62 bool is_download,
63 bool is_stream) override;
62 void OnRequestFailed(bool in_cache, int net_error) override; 64 void OnRequestFailed(bool in_cache, int net_error) override;
63 void OnRequestStarted(base::TimeTicks timestamp) override; 65 void OnRequestStarted(base::TimeTicks timestamp) override;
64 66
65 private: 67 private:
66 net::RedirectInfo redirect_info_; 68 net::RedirectInfo redirect_info_;
67 scoped_refptr<ResourceResponse> redirect_response_; 69 scoped_refptr<ResourceResponse> redirect_response_;
68 scoped_refptr<ResourceResponse> response_; 70 scoped_refptr<ResourceResponse> response_;
69 std::unique_ptr<StreamHandle> body_; 71 std::unique_ptr<StreamHandle> body_;
70 int net_error_; 72 int net_error_;
71 int on_request_handled_counter_; 73 int on_request_handled_counter_;
72 74
73 std::unique_ptr<base::RunLoop> request_redirected_; 75 std::unique_ptr<base::RunLoop> request_redirected_;
74 std::unique_ptr<base::RunLoop> response_started_; 76 std::unique_ptr<base::RunLoop> response_started_;
75 std::unique_ptr<base::RunLoop> request_failed_; 77 std::unique_ptr<base::RunLoop> request_failed_;
76 std::unique_ptr<base::RunLoop> request_started_; 78 std::unique_ptr<base::RunLoop> request_started_;
77 79
78 DISALLOW_COPY_AND_ASSIGN(TestNavigationURLLoaderDelegate); 80 DISALLOW_COPY_AND_ASSIGN(TestNavigationURLLoaderDelegate);
79 }; 81 };
80 82
81 } // namespace content 83 } // namespace content
82 84
83 #endif // CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_DELEGATE_H 85 #endif // CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_DELEGATE_H
OLDNEW
« no previous file with comments | « content/test/test_navigation_url_loader.cc ('k') | content/test/test_navigation_url_loader_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698