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

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

Issue 2785523002: Reduce/remove usage of BrowserThread in content/browser/loader. (Closed)
Patch Set: Remove DCHECK 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RESOURCE_LOADER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ 6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/threading/thread_checker.h"
13 #include "base/time/time.h" 14 #include "base/time/time.h"
14 #include "content/browser/loader/resource_controller.h" 15 #include "content/browser/loader/resource_controller.h"
15 #include "content/browser/loader/resource_handler.h" 16 #include "content/browser/loader/resource_handler.h"
16 #include "content/browser/ssl/ssl_client_auth_handler.h" 17 #include "content/browser/ssl/ssl_client_auth_handler.h"
17 #include "content/browser/ssl/ssl_error_handler.h" 18 #include "content/browser/ssl/ssl_error_handler.h"
18 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
19 #include "net/url_request/url_request.h" 20 #include "net/url_request/url_request.h"
20 #include "url/gurl.h" 21 #include "url/gurl.h"
21 22
22 namespace net { 23 namespace net {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 int times_cancelled_after_request_start_; 170 int times_cancelled_after_request_start_;
170 171
171 // Stores the URL from a deferred redirect. 172 // Stores the URL from a deferred redirect.
172 GURL deferred_redirect_url_; 173 GURL deferred_redirect_url_;
173 174
174 // Read buffer and its size. Class members as OnWillRead can complete 175 // Read buffer and its size. Class members as OnWillRead can complete
175 // asynchronously. 176 // asynchronously.
176 scoped_refptr<net::IOBuffer> read_buffer_; 177 scoped_refptr<net::IOBuffer> read_buffer_;
177 int read_buffer_size_; 178 int read_buffer_size_;
178 179
180 base::ThreadChecker thread_checker_;
181
179 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; 182 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_;
180 183
181 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); 184 DISALLOW_COPY_AND_ASSIGN(ResourceLoader);
182 }; 185 };
183 186
184 } // namespace content 187 } // namespace content
185 188
186 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ 189 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_hints_impl.cc ('k') | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698