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

Side by Side Diff: net/url_request/url_request.h

Issue 10378005: Add more variables to the URLRequest leak assertion crash dumps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/url_request/url_request_context.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 (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 NET_URL_REQUEST_URL_REQUEST_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_
6 #define NET_URL_REQUEST_URL_REQUEST_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 void set_priority(RequestPriority priority) { 582 void set_priority(RequestPriority priority) {
583 DCHECK_GE(priority, MINIMUM_PRIORITY); 583 DCHECK_GE(priority, MINIMUM_PRIORITY);
584 DCHECK_LT(priority, NUM_PRIORITIES); 584 DCHECK_LT(priority, NUM_PRIORITIES);
585 priority_ = priority; 585 priority_ = priority;
586 } 586 }
587 587
588 // This method is intended only for unit tests, but it is being used by 588 // This method is intended only for unit tests, but it is being used by
589 // unit tests outside of net :(. 589 // unit tests outside of net :(.
590 URLRequestJob* job() { return job_; } 590 URLRequestJob* job() { return job_; }
591 591
592 // TODO(willchan): Undo this. Only temporarily public.
593 bool has_delegate() const { return delegate_ != NULL; }
594
592 protected: 595 protected:
593 // Allow the URLRequestJob class to control the is_pending() flag. 596 // Allow the URLRequestJob class to control the is_pending() flag.
594 void set_is_pending(bool value) { is_pending_ = value; } 597 void set_is_pending(bool value) { is_pending_ = value; }
595 598
596 // Allow the URLRequestJob class to set our status too 599 // Allow the URLRequestJob class to set our status too
597 void set_status(const URLRequestStatus& value) { status_ = value; } 600 void set_status(const URLRequestStatus& value) { status_ = value; }
598 601
599 // Allow the URLRequestJob to redirect this request. Returns OK if 602 // Allow the URLRequestJob to redirect this request. Returns OK if
600 // successful, otherwise an error code is returned. 603 // successful, otherwise an error code is returned.
601 int Redirect(const GURL& location, int http_status_code); 604 int Redirect(const GURL& location, int http_status_code);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 659
657 // Notifies the network delegate that the request has been completed. 660 // Notifies the network delegate that the request has been completed.
658 // This does not imply a successful completion. Also a canceled request is 661 // This does not imply a successful completion. Also a canceled request is
659 // considered completed. 662 // considered completed.
660 void NotifyRequestCompleted(); 663 void NotifyRequestCompleted();
661 664
662 // Called by URLRequestJob to allow interception when the final response 665 // Called by URLRequestJob to allow interception when the final response
663 // occurs. 666 // occurs.
664 void NotifyResponseStarted(); 667 void NotifyResponseStarted();
665 668
666 bool has_delegate() const { return delegate_ != NULL; }
667
668 // These functions delegate to |delegate_| and may only be used if 669 // These functions delegate to |delegate_| and may only be used if
669 // |delegate_| is not NULL. See URLRequest::Delegate for the meaning 670 // |delegate_| is not NULL. See URLRequest::Delegate for the meaning
670 // of these functions. 671 // of these functions.
671 void NotifyAuthRequired(AuthChallengeInfo* auth_info); 672 void NotifyAuthRequired(AuthChallengeInfo* auth_info);
672 void NotifyAuthRequiredComplete(NetworkDelegate::AuthRequiredResponse result); 673 void NotifyAuthRequiredComplete(NetworkDelegate::AuthRequiredResponse result);
673 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); 674 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info);
674 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal); 675 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal);
675 bool CanGetCookies(const CookieList& cookie_list) const; 676 bool CanGetCookies(const CookieList& cookie_list) const;
676 bool CanSetCookie(const std::string& cookie_line, 677 bool CanSetCookie(const std::string& cookie_line,
677 CookieOptions* options) const; 678 CookieOptions* options) const;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 scoped_refptr<AuthChallengeInfo> auth_info_; 767 scoped_refptr<AuthChallengeInfo> auth_info_;
767 768
768 base::TimeTicks creation_time_; 769 base::TimeTicks creation_time_;
769 770
770 DISALLOW_COPY_AND_ASSIGN(URLRequest); 771 DISALLOW_COPY_AND_ASSIGN(URLRequest);
771 }; 772 };
772 773
773 } // namespace net 774 } // namespace net
774 775
775 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 776 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698