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

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

Issue 2824193002: Enable use_once_callback for //content/common/*.mojom (Closed)
Patch Set: push_messaging fix Created 3 years, 8 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 "content/browser/loader/navigation_url_loader.h" 9 #include "content/browser/loader/navigation_url_loader.h"
10 #include "content/common/url_loader.mojom.h" 10 #include "content/common/url_loader.mojom.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // mojom::URLLoaderClient implementation: 44 // mojom::URLLoaderClient implementation:
45 void OnReceiveResponse(const ResourceResponseHead& head, 45 void OnReceiveResponse(const ResourceResponseHead& head,
46 const base::Optional<net::SSLInfo>& ssl_info, 46 const base::Optional<net::SSLInfo>& ssl_info,
47 mojom::DownloadedTempFilePtr downloaded_file) override; 47 mojom::DownloadedTempFilePtr downloaded_file) override;
48 void OnReceiveRedirect(const net::RedirectInfo& redirect_info, 48 void OnReceiveRedirect(const net::RedirectInfo& redirect_info,
49 const ResourceResponseHead& head) override; 49 const ResourceResponseHead& head) override;
50 void OnDataDownloaded(int64_t data_length, int64_t encoded_length) override; 50 void OnDataDownloaded(int64_t data_length, int64_t encoded_length) override;
51 void OnUploadProgress(int64_t current_position, 51 void OnUploadProgress(int64_t current_position,
52 int64_t total_size, 52 int64_t total_size,
53 const OnUploadProgressCallback& callback) override; 53 OnUploadProgressCallback callback) override;
54 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override; 54 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override;
55 void OnTransferSizeUpdated(int32_t transfer_size_diff) override; 55 void OnTransferSizeUpdated(int32_t transfer_size_diff) override;
56 void OnStartLoadingResponseBody( 56 void OnStartLoadingResponseBody(
57 mojo::ScopedDataPipeConsumerHandle body) override; 57 mojo::ScopedDataPipeConsumerHandle body) override;
58 void OnComplete( 58 void OnComplete(
59 const ResourceRequestCompletionStatus& completion_status) override; 59 const ResourceRequestCompletionStatus& completion_status) override;
60 60
61 private: 61 private:
62 void ConnectURLLoaderFactory( 62 void ConnectURLLoaderFactory(
63 std::unique_ptr<service_manager::Connector> connector); 63 std::unique_ptr<service_manager::Connector> connector);
64 64
65 NavigationURLLoaderDelegate* delegate_; 65 NavigationURLLoaderDelegate* delegate_;
66 66
67 mojom::URLLoaderFactoryRequest url_loader_factory_request_; 67 mojom::URLLoaderFactoryRequest url_loader_factory_request_;
68 mojom::URLLoaderFactoryPtr url_loader_factory_; 68 mojom::URLLoaderFactoryPtr url_loader_factory_;
69 mojo::Binding<mojom::URLLoaderClient> binding_; 69 mojo::Binding<mojom::URLLoaderClient> binding_;
70 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_; 70 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_;
71 scoped_refptr<ResourceResponse> response_; 71 scoped_refptr<ResourceResponse> response_;
72 SSLStatus ssl_status_; 72 SSLStatus ssl_status_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); 74 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService);
75 }; 75 };
76 76
77 } // namespace content 77 } // namespace content
78 78
79 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ 79 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698