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

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

Issue 1811913003: PlzNavigate: support NavigationThrottle::WillProcessResponse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of 1832803002 Created 4 years, 9 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 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_H_ 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 25
26 class NavigationURLLoaderImpl : public NavigationURLLoader { 26 class NavigationURLLoaderImpl : public NavigationURLLoader {
27 public: 27 public:
28 // The caller is responsible for ensuring that |delegate| outlives the loader. 28 // The caller is responsible for ensuring that |delegate| outlives the loader.
29 NavigationURLLoaderImpl(BrowserContext* browser_context, 29 NavigationURLLoaderImpl(BrowserContext* browser_context,
30 scoped_ptr<NavigationRequestInfo> request_info, 30 scoped_ptr<NavigationRequestInfo> request_info,
31 ServiceWorkerNavigationHandle* service_worker_handle, 31 ServiceWorkerNavigationHandle* service_worker_handle,
32 NavigationURLLoaderDelegate* delegate); 32 NavigationURLLoaderDelegate* delegate);
33 ~NavigationURLLoaderImpl() override; 33 ~NavigationURLLoaderImpl() override;
34 34
35 // Called in response to OnRequestRedirected to continue processing the 35 // NavigationURLLoader implementation.
36 // request.
37 void FollowRedirect() override; 36 void FollowRedirect() override;
37 void ProceedWithResponse() override;
38 38
39 private: 39 private:
40 friend class NavigationURLLoaderImplCore; 40 friend class NavigationURLLoaderImplCore;
41 41
42 // Notifies the delegate of a redirect. 42 // Notifies the delegate of a redirect.
43 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, 43 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info,
44 const scoped_refptr<ResourceResponse>& response); 44 const scoped_refptr<ResourceResponse>& response);
45 45
46 // Notifies the delegate that the response has started. 46 // Notifies the delegate that the response has started.
47 void NotifyResponseStarted(const scoped_refptr<ResourceResponse>& response, 47 void NotifyResponseStarted(const scoped_refptr<ResourceResponse>& response,
(...skipping 13 matching lines...) Expand all
61 NavigationURLLoaderImplCore* core_; 61 NavigationURLLoaderImplCore* core_;
62 62
63 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; 63 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); 65 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl);
66 }; 66 };
67 67
68 } // namespace content 68 } // namespace content
69 69
70 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ 70 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_url_loader.h ('k') | content/browser/loader/navigation_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698