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

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

Issue 12701011: [Net] Propagate priority changes from URLRequest to HttpTransaction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leaks 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
« no previous file with comments | « net/net.gyp ('k') | net/url_request/url_request.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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 // Used to specify the context (cookie store, cache) for this request. 608 // Used to specify the context (cookie store, cache) for this request.
609 const URLRequestContext* context() const; 609 const URLRequestContext* context() const;
610 610
611 const BoundNetLog& net_log() const { return net_log_; } 611 const BoundNetLog& net_log() const { return net_log_; }
612 612
613 // Returns the expected content size if available 613 // Returns the expected content size if available
614 int64 GetExpectedContentSize() const; 614 int64 GetExpectedContentSize() const;
615 615
616 // Returns the priority level for this request. 616 // Returns the priority level for this request.
617 RequestPriority priority() const { return priority_; } 617 RequestPriority priority() const { return priority_; }
618 void set_priority(RequestPriority priority) { 618
619 DCHECK_GE(priority, MINIMUM_PRIORITY); 619 // Sets the priority level for this request and any related jobs.
620 DCHECK_LT(priority, NUM_PRIORITIES); 620 void SetPriority(RequestPriority priority);
621 priority_ = priority;
622 }
623 621
624 // Returns true iff this request would be internally redirected to HTTPS 622 // Returns true iff this request would be internally redirected to HTTPS
625 // due to HSTS. If so, |redirect_url| is rewritten to the new HTTPS URL. 623 // due to HSTS. If so, |redirect_url| is rewritten to the new HTTPS URL.
626 bool GetHSTSRedirect(GURL* redirect_url) const; 624 bool GetHSTSRedirect(GURL* redirect_url) const;
627 625
628 // TODO(willchan): Undo this. Only temporarily public. 626 // TODO(willchan): Undo this. Only temporarily public.
629 bool has_delegate() const { return delegate_ != NULL; } 627 bool has_delegate() const { return delegate_ != NULL; }
630 628
631 // NOTE(willchan): This is just temporary for debugging 629 // NOTE(willchan): This is just temporary for debugging
632 // http://crbug.com/90971. 630 // http://crbug.com/90971.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 LoadTimingInfo load_timing_info_; 838 LoadTimingInfo load_timing_info_;
841 839
842 scoped_ptr<const base::debug::StackTrace> stack_trace_; 840 scoped_ptr<const base::debug::StackTrace> stack_trace_;
843 841
844 DISALLOW_COPY_AND_ASSIGN(URLRequest); 842 DISALLOW_COPY_AND_ASSIGN(URLRequest);
845 }; 843 };
846 844
847 } // namespace net 845 } // namespace net
848 846
849 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 847 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698