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

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

Issue 2874663004: Provide skeleton functionality for AppCache handling in the network service. (Closed)
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 "base/memory/weak_ptr.h"
10 #include "content/browser/loader/navigation_url_loader.h" 10 #include "content/browser/loader/navigation_url_loader.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 int64_t total_size, 60 int64_t total_size,
61 OnUploadProgressCallback callback) override; 61 OnUploadProgressCallback callback) override;
62 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override; 62 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override;
63 void OnTransferSizeUpdated(int32_t transfer_size_diff) override; 63 void OnTransferSizeUpdated(int32_t transfer_size_diff) override;
64 void OnStartLoadingResponseBody( 64 void OnStartLoadingResponseBody(
65 mojo::ScopedDataPipeConsumerHandle body) override; 65 mojo::ScopedDataPipeConsumerHandle body) override;
66 void OnComplete( 66 void OnComplete(
67 const ResourceRequestCompletionStatus& completion_status) override; 67 const ResourceRequestCompletionStatus& completion_status) override;
68 68
69 // Initiates the request. 69 // Initiates the request.
70 void StartURLRequest(std::unique_ptr<ResourceRequest> request); 70 void StartURLRequest(mojom::URLLoaderFactoryPtrInfo url_loader_factory_info,
71 std::unique_ptr<ResourceRequest> request);
71 72
72 private: 73 private:
73 void ConnectURLLoaderFactory( 74 void ConnectURLLoaderFactory(
74 std::unique_ptr<service_manager::Connector> connector); 75 std::unique_ptr<service_manager::Connector> connector);
75 76
76 mojom::URLLoaderFactory* GetURLLoaderFactory(); 77 mojom::URLLoaderFactory* GetURLLoaderFactory();
77 78
78 NavigationURLLoaderDelegate* delegate_; 79 NavigationURLLoaderDelegate* delegate_;
79 80
81 mojom::URLLoaderFactoryPtr url_loader_factory_;
80 mojo::Binding<mojom::URLLoaderClient> binding_; 82 mojo::Binding<mojom::URLLoaderClient> binding_;
81 std::unique_ptr<NavigationRequestInfo> request_info_; 83 std::unique_ptr<NavigationRequestInfo> request_info_;
82 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_; 84 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_;
83 scoped_refptr<ResourceResponse> response_; 85 scoped_refptr<ResourceResponse> response_;
84 SSLStatus ssl_status_; 86 SSLStatus ssl_status_;
85 87
86 base::WeakPtrFactory<NavigationURLLoaderNetworkService> weak_factory_; 88 base::WeakPtrFactory<NavigationURLLoaderNetworkService> weak_factory_;
87 89
88 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); 90 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService);
89 }; 91 };
90 92
91 } // namespace content 93 } // namespace content
92 94
93 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ 95 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698