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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Rebase + addressed nit Created 4 years, 2 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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 class ServiceWorkerNavigationHandle; 24 class ServiceWorkerNavigationHandle;
25 class StreamHandle; 25 class StreamHandle;
26 struct ResourceResponse; 26 struct ResourceResponse;
27 struct SSLStatus; 27 struct SSLStatus;
28 28
29 class NavigationURLLoaderImpl : public NavigationURLLoader { 29 class NavigationURLLoaderImpl : public NavigationURLLoader {
30 public: 30 public:
31 // The caller is responsible for ensuring that |delegate| outlives the loader. 31 // The caller is responsible for ensuring that |delegate| outlives the loader.
32 NavigationURLLoaderImpl(BrowserContext* browser_context, 32 NavigationURLLoaderImpl(BrowserContext* browser_context,
33 std::unique_ptr<NavigationRequestInfo> request_info, 33 std::unique_ptr<NavigationRequestInfo> request_info,
34 std::unique_ptr<NavigationUIData> navigation_ui_data,
34 ServiceWorkerNavigationHandle* service_worker_handle, 35 ServiceWorkerNavigationHandle* service_worker_handle,
35 NavigationURLLoaderDelegate* delegate); 36 NavigationURLLoaderDelegate* delegate);
36 ~NavigationURLLoaderImpl() override; 37 ~NavigationURLLoaderImpl() override;
37 38
38 // NavigationURLLoader implementation. 39 // NavigationURLLoader implementation.
39 void FollowRedirect() override; 40 void FollowRedirect() override;
40 void ProceedWithResponse() override; 41 void ProceedWithResponse() override;
41 42
42 private: 43 private:
43 friend class NavigationURLLoaderImplCore; 44 friend class NavigationURLLoaderImplCore;
(...skipping 22 matching lines...) Expand all
66 NavigationURLLoaderImplCore* core_; 67 NavigationURLLoaderImplCore* core_;
67 68
68 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; 69 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_;
69 70
70 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); 71 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl);
71 }; 72 };
72 73
73 } // namespace content 74 } // namespace content
74 75
75 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ 76 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_url_loader_factory.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