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

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

Issue 2886843006: servificied service worker interception
Patch Set: 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 "content/browser/loader/navigation_url_loader.h" 10 #include "content/browser/loader/navigation_url_loader.h"
10 #include "content/common/url_loader.mojom.h" 11 #include "content/common/url_loader.mojom.h"
11 #include "content/common/url_loader_factory.mojom.h" 12 #include "content/common/url_loader_factory.mojom.h"
13 #include "content/public/browser/browser_thread.h"
12 #include "content/public/browser/ssl_status.h" 14 #include "content/public/browser/ssl_status.h"
13 #include "mojo/public/cpp/bindings/binding.h" 15 #include "mojo/public/cpp/bindings/binding.h"
14 #include "services/service_manager/public/cpp/connector.h" 16 #include "services/service_manager/public/cpp/connector.h"
15 17
16 namespace net { 18 namespace net {
17 struct RedirectInfo; 19 struct RedirectInfo;
18 } 20 }
19 21
20 namespace content { 22 namespace content {
21 23
(...skipping 30 matching lines...) Expand all
52 void OnUploadProgress(int64_t current_position, 54 void OnUploadProgress(int64_t current_position,
53 int64_t total_size, 55 int64_t total_size,
54 OnUploadProgressCallback callback) override; 56 OnUploadProgressCallback callback) override;
55 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override; 57 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override;
56 void OnTransferSizeUpdated(int32_t transfer_size_diff) override; 58 void OnTransferSizeUpdated(int32_t transfer_size_diff) override;
57 void OnStartLoadingResponseBody( 59 void OnStartLoadingResponseBody(
58 mojo::ScopedDataPipeConsumerHandle body) override; 60 mojo::ScopedDataPipeConsumerHandle body) override;
59 void OnComplete( 61 void OnComplete(
60 const ResourceRequestCompletionStatus& completion_status) override; 62 const ResourceRequestCompletionStatus& completion_status) override;
61 63
64 class IOLoader;
65
62 private: 66 private:
63 NavigationURLLoaderDelegate* delegate_; 67 NavigationURLLoaderDelegate* delegate_;
64 68
65 mojo::Binding<mojom::URLLoaderClient> binding_; 69 mojo::Binding<mojom::URLLoaderClient> binding_;
66 std::unique_ptr<NavigationRequestInfo> request_info_; 70 std::unique_ptr<NavigationRequestInfo> request_info_;
67 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_; 71 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_;
68 scoped_refptr<ResourceResponse> response_; 72 scoped_refptr<ResourceResponse> response_;
69 SSLStatus ssl_status_; 73 SSLStatus ssl_status_;
74 std::unique_ptr<ResourceRequest> new_request_;
75 std::unique_ptr<IOLoader, BrowserThread::DeleteOnIOThread> io_loader_;
70 76
71 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); 77 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService);
72 }; 78 };
73 79
74 } // namespace content 80 } // namespace content
75 81
76 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ 82 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/loader/navigation_url_loader_network_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698