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

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

Issue 12321106: Update TestURLRequest constructor interface in unit tests. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Make use of NULL NetworkDelegate explicit in unit test. Created 7 years, 9 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
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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 return received_response_content_length_; 641 return received_response_content_length_;
642 } 642 }
643 643
644 protected: 644 protected:
645 // Allow the URLRequestJob class to control the is_pending() flag. 645 // Allow the URLRequestJob class to control the is_pending() flag.
646 void set_is_pending(bool value) { is_pending_ = value; } 646 void set_is_pending(bool value) { is_pending_ = value; }
647 647
648 // Allow the URLRequestJob class to set our status too 648 // Allow the URLRequestJob class to set our status too
649 void set_status(const URLRequestStatus& value) { status_ = value; } 649 void set_status(const URLRequestStatus& value) { status_ = value; }
650 650
651 // Provide derived classes with read-only access to the network delegate.
652 NetworkDelegate* network_delegate() { return network_delegate_; }
mmenke 2013/03/10 20:40:56 I don't think we need this. The one class that us
653
651 // Allow the URLRequestJob to redirect this request. Returns OK if 654 // Allow the URLRequestJob to redirect this request. Returns OK if
652 // successful, otherwise an error code is returned. 655 // successful, otherwise an error code is returned.
653 int Redirect(const GURL& location, int http_status_code); 656 int Redirect(const GURL& location, int http_status_code);
654 657
655 // Called by URLRequestJob to allow interception when a redirect occurs. 658 // Called by URLRequestJob to allow interception when a redirect occurs.
656 void NotifyReceivedRedirect(const GURL& location, bool* defer_redirect); 659 void NotifyReceivedRedirect(const GURL& location, bool* defer_redirect);
657 660
658 // Allow an interceptor's URLRequestJob to restart this request. 661 // Allow an interceptor's URLRequestJob to restart this request.
659 // Should only be called if the original job has not started a response. 662 // Should only be called if the original job has not started a response.
660 void Restart(); 663 void Restart();
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 LoadTimingInfo load_timing_info_; 843 LoadTimingInfo load_timing_info_;
841 844
842 scoped_ptr<const base::debug::StackTrace> stack_trace_; 845 scoped_ptr<const base::debug::StackTrace> stack_trace_;
843 846
844 DISALLOW_COPY_AND_ASSIGN(URLRequest); 847 DISALLOW_COPY_AND_ASSIGN(URLRequest);
845 }; 848 };
846 849
847 } // namespace net 850 } // namespace net
848 851
849 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 852 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698