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

Side by Side Diff: content/browser/loader/resource_handler.cc

Issue 2915313002: Replace deprecated base::NonThreadSafe in /content/browser/loader in favor of SequenceChecker. (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 | « content/browser/loader/resource_handler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/browser/loader/resource_handler.h" 5 #include "content/browser/loader/resource_handler.h"
6 6
7 #include "content/browser/loader/resource_request_info_impl.h" 7 #include "content/browser/loader/resource_request_info_impl.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 ResourceHandler::Delegate::Delegate() {} 11 ResourceHandler::Delegate::Delegate() {}
12 12
13 ResourceHandler::Delegate::~Delegate() {} 13 ResourceHandler::Delegate::~Delegate() {}
14 14
15 void ResourceHandler::SetDelegate(Delegate* delegate) { 15 void ResourceHandler::SetDelegate(Delegate* delegate) {
16 delegate_ = delegate; 16 delegate_ = delegate;
17 } 17 }
18 18
19 ResourceHandler::~ResourceHandler() {} 19 ResourceHandler::~ResourceHandler() {
20 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
21 }
20 22
21 ResourceHandler::ResourceHandler(net::URLRequest* request) 23 ResourceHandler::ResourceHandler(net::URLRequest* request)
22 : request_(request) {} 24 : request_(request) {}
23 25
24 void ResourceHandler::HoldController( 26 void ResourceHandler::HoldController(
25 std::unique_ptr<ResourceController> controller) { 27 std::unique_ptr<ResourceController> controller) {
26 controller_ = std::move(controller); 28 controller_ = std::move(controller);
27 } 29 }
28 30
29 std::unique_ptr<ResourceController> ResourceHandler::ReleaseController() { 31 std::unique_ptr<ResourceController> ResourceHandler::ReleaseController() {
(...skipping 28 matching lines...) Expand all
58 60
59 int ResourceHandler::GetRequestID() const { 61 int ResourceHandler::GetRequestID() const {
60 return GetRequestInfo()->GetRequestID(); 62 return GetRequestInfo()->GetRequestID();
61 } 63 }
62 64
63 ResourceMessageFilter* ResourceHandler::GetFilter() const { 65 ResourceMessageFilter* ResourceHandler::GetFilter() const {
64 return GetRequestInfo()->requester_info()->filter(); 66 return GetRequestInfo()->requester_info()->filter();
65 } 67 }
66 68
67 } // namespace content 69 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698