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

Side by Side Diff: net/url_request/url_fetcher_core.cc

Issue 1913273003: Remove stack trace from URLFetcher / URLRequest for debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove a header include Created 4 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
« no previous file with comments | « net/url_request/url_fetcher_core.h ('k') | net/url_request/url_request.h » ('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 (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 "net/url_request/url_fetcher_core.h" 5 #include "net/url_request/url_fetcher_core.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 } 549 }
550 550
551 DCHECK(request_context_getter_.get()); 551 DCHECK(request_context_getter_.get());
552 DCHECK(!request_.get()); 552 DCHECK(!request_.get());
553 553
554 g_registry.Get().AddURLFetcherCore(this); 554 g_registry.Get().AddURLFetcherCore(this);
555 current_response_bytes_ = 0; 555 current_response_bytes_ = 0;
556 request_context_getter_->AddObserver(this); 556 request_context_getter_->AddObserver(this);
557 request_ = request_context_getter_->GetURLRequestContext()->CreateRequest( 557 request_ = request_context_getter_->GetURLRequestContext()->CreateRequest(
558 original_url_, DEFAULT_PRIORITY, this); 558 original_url_, DEFAULT_PRIORITY, this);
559 request_->set_stack_trace(stack_trace_);
560 int flags = request_->load_flags() | load_flags_; 559 int flags = request_->load_flags() | load_flags_;
561 560
562 // TODO(mmenke): This should really be with the other code to set the upload 561 // TODO(mmenke): This should really be with the other code to set the upload
563 // body, below. 562 // body, below.
564 if (chunked_stream_) 563 if (chunked_stream_)
565 request_->set_upload(std::move(chunked_stream_)); 564 request_->set_upload(std::move(chunked_stream_));
566 565
567 request_->SetLoadFlags(flags); 566 request_->SetLoadFlags(flags);
568 request_->SetReferrer(referrer_); 567 request_->SetReferrer(referrer_);
569 request_->set_referrer_policy(referrer_policy_); 568 request_->set_referrer_policy(referrer_policy_);
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 } 955 }
957 956
958 void URLFetcherCore::AssertHasNoUploadData() const { 957 void URLFetcherCore::AssertHasNoUploadData() const {
959 DCHECK(!upload_content_set_); 958 DCHECK(!upload_content_set_);
960 DCHECK(upload_content_.empty()); 959 DCHECK(upload_content_.empty());
961 DCHECK(upload_file_path_.empty()); 960 DCHECK(upload_file_path_.empty());
962 DCHECK(upload_stream_factory_.is_null()); 961 DCHECK(upload_stream_factory_.is_null());
963 } 962 }
964 963
965 } // namespace net 964 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher_core.h ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698