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

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

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Address review comments 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 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"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "content/browser/loader/navigation_url_loader.h" 14 #include "content/browser/loader/navigation_url_loader.h"
15 15
16 namespace net { 16 namespace net {
17 struct RedirectInfo; 17 struct RedirectInfo;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 21
22 class AppCacheNavigationHandle;
22 class NavigationURLLoaderImplCore; 23 class NavigationURLLoaderImplCore;
23 class NavigationData; 24 class NavigationData;
24 class ServiceWorkerNavigationHandle; 25 class ServiceWorkerNavigationHandle;
25 class StreamHandle; 26 class StreamHandle;
26 struct ResourceResponse; 27 struct ResourceResponse;
27 struct SSLStatus; 28 struct SSLStatus;
28 29
29 class NavigationURLLoaderImpl : public NavigationURLLoader { 30 class NavigationURLLoaderImpl : public NavigationURLLoader {
30 public: 31 public:
31 // The caller is responsible for ensuring that |delegate| outlives the loader. 32 // The caller is responsible for ensuring that |delegate| outlives the loader.
32 NavigationURLLoaderImpl(BrowserContext* browser_context, 33 NavigationURLLoaderImpl(BrowserContext* browser_context,
33 std::unique_ptr<NavigationRequestInfo> request_info, 34 std::unique_ptr<NavigationRequestInfo> request_info,
34 std::unique_ptr<NavigationUIData> navigation_ui_data, 35 std::unique_ptr<NavigationUIData> navigation_ui_data,
35 ServiceWorkerNavigationHandle* service_worker_handle, 36 ServiceWorkerNavigationHandle* service_worker_handle,
37 AppCacheNavigationHandle* appcache_handle,
36 NavigationURLLoaderDelegate* delegate); 38 NavigationURLLoaderDelegate* delegate);
37 ~NavigationURLLoaderImpl() override; 39 ~NavigationURLLoaderImpl() override;
38 40
39 // NavigationURLLoader implementation. 41 // NavigationURLLoader implementation.
40 void FollowRedirect() override; 42 void FollowRedirect() override;
41 void ProceedWithResponse() override; 43 void ProceedWithResponse() override;
42 44
43 private: 45 private:
44 friend class NavigationURLLoaderImplCore; 46 friend class NavigationURLLoaderImplCore;
45 47
(...skipping 21 matching lines...) Expand all
67 NavigationURLLoaderImplCore* core_; 69 NavigationURLLoaderImplCore* core_;
68 70
69 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; 71 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_;
70 72
71 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); 73 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl);
72 }; 74 };
73 75
74 } // namespace content 76 } // namespace content
75 77
76 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ 78 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698