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

Side by Side Diff: content/browser/loader/navigation_url_loader_impl_core.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_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 26 matching lines...) Expand all
37 public: 37 public:
38 // Creates a new NavigationURLLoaderImplCore that forwards signals back to 38 // Creates a new NavigationURLLoaderImplCore that forwards signals back to
39 // |loader| on the UI thread. 39 // |loader| on the UI thread.
40 explicit NavigationURLLoaderImplCore( 40 explicit NavigationURLLoaderImplCore(
41 const base::WeakPtr<NavigationURLLoaderImpl>& loader); 41 const base::WeakPtr<NavigationURLLoaderImpl>& loader);
42 ~NavigationURLLoaderImplCore(); 42 ~NavigationURLLoaderImplCore();
43 43
44 // Starts the request. 44 // Starts the request.
45 void Start(ResourceContext* resource_context, 45 void Start(ResourceContext* resource_context,
46 ServiceWorkerNavigationHandleCore* service_worker_handle_core, 46 ServiceWorkerNavigationHandleCore* service_worker_handle_core,
47 std::unique_ptr<NavigationRequestInfo> request_info); 47 std::unique_ptr<NavigationRequestInfo> request_info,
48 std::unique_ptr<NavigationUIData> navigation_ui_data);
48 49
49 // Follows the current pending redirect. 50 // Follows the current pending redirect.
50 void FollowRedirect(); 51 void FollowRedirect();
51 52
52 // Proceeds with processing the response. 53 // Proceeds with processing the response.
53 void ProceedWithResponse(); 54 void ProceedWithResponse();
54 55
55 void set_resource_handler(NavigationResourceHandler* resource_handler) { 56 void set_resource_handler(NavigationResourceHandler* resource_handler) {
56 resource_handler_ = resource_handler; 57 resource_handler_ = resource_handler;
57 } 58 }
(...skipping 14 matching lines...) Expand all
72 private: 73 private:
73 base::WeakPtr<NavigationURLLoaderImpl> loader_; 74 base::WeakPtr<NavigationURLLoaderImpl> loader_;
74 NavigationResourceHandler* resource_handler_; 75 NavigationResourceHandler* resource_handler_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); 77 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore);
77 }; 78 };
78 79
79 } // namespace content 80 } // namespace content
80 81
81 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 82 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_url_loader_impl.cc ('k') | content/browser/loader/navigation_url_loader_impl_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698