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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: PlzNavigate: support the WebRequest API Created 4 years, 3 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 28 matching lines...) Expand all
39 public: 39 public:
40 // Creates a new NavigationURLLoaderImplCore that forwards signals back to 40 // Creates a new NavigationURLLoaderImplCore that forwards signals back to
41 // |loader| on the UI thread. 41 // |loader| on the UI thread.
42 explicit NavigationURLLoaderImplCore( 42 explicit NavigationURLLoaderImplCore(
43 const base::WeakPtr<NavigationURLLoaderImpl>& loader); 43 const base::WeakPtr<NavigationURLLoaderImpl>& loader);
44 ~NavigationURLLoaderImplCore(); 44 ~NavigationURLLoaderImplCore();
45 45
46 // Starts the request. 46 // Starts the request.
47 void Start(ResourceContext* resource_context, 47 void Start(ResourceContext* resource_context,
48 ServiceWorkerContextWrapper* service_worker_context_wrapper, 48 ServiceWorkerContextWrapper* service_worker_context_wrapper,
49 std::unique_ptr<NavigationRequestInfo> request_info); 49 std::unique_ptr<NavigationRequestInfo> request_info,
50 std::unique_ptr<NavigationUIData> navigation_ui_data);
50 51
51 // Follows the current pending redirect. 52 // Follows the current pending redirect.
52 void FollowRedirect(); 53 void FollowRedirect();
53 54
54 // Proceeds with processing the response. 55 // Proceeds with processing the response.
55 void ProceedWithResponse(); 56 void ProceedWithResponse();
56 57
57 void set_resource_handler(NavigationResourceHandler* resource_handler) { 58 void set_resource_handler(NavigationResourceHandler* resource_handler) {
58 resource_handler_ = resource_handler; 59 resource_handler_ = resource_handler;
59 } 60 }
(...skipping 14 matching lines...) Expand all
74 private: 75 private:
75 // Called when done checking whether the navigation has a ServiceWorker 76 // Called when done checking whether the navigation has a ServiceWorker
76 // registered for it. 77 // registered for it.
77 void OnServiceWorkerChecksPerformed( 78 void OnServiceWorkerChecksPerformed(
78 ServiceWorkerStatusCode status, 79 ServiceWorkerStatusCode status,
79 scoped_refptr<ServiceWorkerRegistration> registration); 80 scoped_refptr<ServiceWorkerRegistration> registration);
80 81
81 base::WeakPtr<NavigationURLLoaderImpl> loader_; 82 base::WeakPtr<NavigationURLLoaderImpl> loader_;
82 NavigationResourceHandler* resource_handler_; 83 NavigationResourceHandler* resource_handler_;
83 std::unique_ptr<NavigationRequestInfo> request_info_; 84 std::unique_ptr<NavigationRequestInfo> request_info_;
85 std::unique_ptr<NavigationUIData> navigation_ui_data_;
84 ResourceContext* resource_context_; 86 ResourceContext* resource_context_;
85 87
86 base::WeakPtrFactory<NavigationURLLoaderImplCore> factory_; 88 base::WeakPtrFactory<NavigationURLLoaderImplCore> factory_;
87 89
88 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); 90 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore);
89 }; 91 };
90 92
91 } // namespace content 93 } // namespace content
92 94
93 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 95 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698