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

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

Issue 2931623002: Use independent URLLoader in browser-side code (Closed)
Patch Set: . Created 3 years, 6 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
« no previous file with comments | « no previous file | content/browser/loader/navigation_url_loader_network_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 mojo::ScopedDataPipeConsumerHandle body) override; 58 mojo::ScopedDataPipeConsumerHandle body) override;
59 void OnComplete( 59 void OnComplete(
60 const ResourceRequestCompletionStatus& completion_status) override; 60 const ResourceRequestCompletionStatus& completion_status) override;
61 61
62 private: 62 private:
63 class URLLoaderRequestController; 63 class URLLoaderRequestController;
64 64
65 NavigationURLLoaderDelegate* delegate_; 65 NavigationURLLoaderDelegate* delegate_;
66 66
67 mojo::Binding<mojom::URLLoaderClient> binding_; 67 mojo::Binding<mojom::URLLoaderClient> binding_;
68 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_; 68 mojom::URLLoaderPtr url_loader_ptr_;
69 scoped_refptr<ResourceResponse> response_; 69 scoped_refptr<ResourceResponse> response_;
70 SSLStatus ssl_status_; 70 SSLStatus ssl_status_;
71 71
72 // Lives on the IO thread. 72 // Lives on the IO thread.
73 std::unique_ptr<URLLoaderRequestController> request_controller_; 73 std::unique_ptr<URLLoaderRequestController> request_controller_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); 75 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService);
76 }; 76 };
77 77
78 } // namespace content 78 } // namespace content
79 79
80 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ 80 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/navigation_url_loader_network_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698