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

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

Issue 2847003003: Fix SitePerProcessBrowserTest.ProcessTransferAfterError to not requiring modifying the mock HostRes… (Closed)
Patch Set: remove unnecessary include Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_NETWORK_SERVICE_H_ 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/browser/loader/navigation_url_loader.h" 10 #include "content/browser/loader/navigation_url_loader.h"
11 #include "content/common/content_export.h"
11 #include "content/common/url_loader.mojom.h" 12 #include "content/common/url_loader.mojom.h"
12 #include "content/common/url_loader_factory.mojom.h" 13 #include "content/common/url_loader_factory.mojom.h"
13 #include "content/public/browser/ssl_status.h" 14 #include "content/public/browser/ssl_status.h"
14 #include "mojo/public/cpp/bindings/binding.h" 15 #include "mojo/public/cpp/bindings/binding.h"
15 #include "services/service_manager/public/cpp/connector.h" 16 #include "services/service_manager/public/cpp/connector.h"
16 17
17 namespace net { 18 namespace net {
18 struct RedirectInfo; 19 struct RedirectInfo;
19 } 20 }
20 21
(...skipping 11 matching lines...) Expand all
32 NavigationURLLoaderNetworkService( 33 NavigationURLLoaderNetworkService(
33 ResourceContext* resource_context, 34 ResourceContext* resource_context,
34 StoragePartition* storage_partition, 35 StoragePartition* storage_partition,
35 std::unique_ptr<NavigationRequestInfo> request_info, 36 std::unique_ptr<NavigationRequestInfo> request_info,
36 std::unique_ptr<NavigationUIData> navigation_ui_data, 37 std::unique_ptr<NavigationUIData> navigation_ui_data,
37 ServiceWorkerNavigationHandle* service_worker_handle, 38 ServiceWorkerNavigationHandle* service_worker_handle,
38 AppCacheNavigationHandle* appcache_handle, 39 AppCacheNavigationHandle* appcache_handle,
39 NavigationURLLoaderDelegate* delegate); 40 NavigationURLLoaderDelegate* delegate);
40 ~NavigationURLLoaderNetworkService() override; 41 ~NavigationURLLoaderNetworkService() override;
41 42
43 // Overrides the URLLoaderFactory for the next request.
44 static CONTENT_EXPORT void OverrideURLLoaderFactoryForTesting(
45 mojom::URLLoaderFactoryPtr url_loader_factory);
46
42 // NavigationURLLoader implementation: 47 // NavigationURLLoader implementation:
43 void FollowRedirect() override; 48 void FollowRedirect() override;
44 void ProceedWithResponse() override; 49 void ProceedWithResponse() override;
45 50
46 // mojom::URLLoaderClient implementation: 51 // mojom::URLLoaderClient implementation:
47 void OnReceiveResponse(const ResourceResponseHead& head, 52 void OnReceiveResponse(const ResourceResponseHead& head,
48 const base::Optional<net::SSLInfo>& ssl_info, 53 const base::Optional<net::SSLInfo>& ssl_info,
49 mojom::DownloadedTempFilePtr downloaded_file) override; 54 mojom::DownloadedTempFilePtr downloaded_file) override;
50 void OnReceiveRedirect(const net::RedirectInfo& redirect_info, 55 void OnReceiveRedirect(const net::RedirectInfo& redirect_info,
51 const ResourceResponseHead& head) override; 56 const ResourceResponseHead& head) override;
(...skipping 24 matching lines...) Expand all
76 SSLStatus ssl_status_; 81 SSLStatus ssl_status_;
77 82
78 base::WeakPtrFactory<NavigationURLLoaderNetworkService> weak_factory_; 83 base::WeakPtrFactory<NavigationURLLoaderNetworkService> weak_factory_;
79 84
80 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); 85 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService);
81 }; 86 };
82 87
83 } // namespace content 88 } // namespace content
84 89
85 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ 90 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698