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

Side by Side Diff: content/renderer/fetchers/resource_fetcher_impl.h

Issue 2140523002: Remove WebURLRequest::initialize() and simplify WebURLRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mutable ref Created 4 years, 5 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_
6 #define CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_ 6 #define CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // WebURLLoaderClientImpl methods: 60 // WebURLLoaderClientImpl methods:
61 void OnLoadComplete() override; 61 void OnLoadComplete() override;
62 void Cancel() override; 62 void Cancel() override;
63 63
64 std::unique_ptr<blink::WebURLLoader> loader_; 64 std::unique_ptr<blink::WebURLLoader> loader_;
65 65
66 // Options to send to the loader. 66 // Options to send to the loader.
67 blink::WebURLLoaderOptions options_; 67 blink::WebURLLoaderOptions options_;
68 68
69 // Request to send. Released once Start() is called. 69 // Request to send.
70 blink::WebURLRequest request_; 70 blink::WebURLRequest request_;
71 71
72 // Callback when we're done. 72 // Callback when we're done.
73 Callback callback_; 73 Callback callback_;
74 74
75 // Limit how long to wait for the server. 75 // Limit how long to wait for the server.
76 base::OneShotTimer timeout_timer_; 76 base::OneShotTimer timeout_timer_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(ResourceFetcherImpl); 78 DISALLOW_COPY_AND_ASSIGN(ResourceFetcherImpl);
79 }; 79 };
80 80
81 } // namespace content 81 } // namespace content
82 82
83 #endif // CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_ 83 #endif // CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/web_url_loader_impl_unittest.cc ('k') | content/renderer/fetchers/resource_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698