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

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

Issue 12701011: [Net] Propagate priority changes from URLRequest to HttpTransaction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/system_monitor/system_monitor.h" 14 #include "base/system_monitor/system_monitor.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "net/base/filter.h" 16 #include "net/base/filter.h"
17 #include "net/base/host_port_pair.h" 17 #include "net/base/host_port_pair.h"
18 #include "net/base/load_states.h" 18 #include "net/base/load_states.h"
19 #include "net/base/net_export.h" 19 #include "net/base/net_export.h"
20 #include "net/base/request_priority.h"
20 #include "net/base/upload_progress.h" 21 #include "net/base/upload_progress.h"
21 #include "net/cookies/canonical_cookie.h" 22 #include "net/cookies/canonical_cookie.h"
22 23
23 namespace net { 24 namespace net {
24 25
25 class AuthChallengeInfo; 26 class AuthChallengeInfo;
26 class AuthCredentials; 27 class AuthCredentials;
27 class CookieOptions; 28 class CookieOptions;
28 class HttpRequestHeaders; 29 class HttpRequestHeaders;
29 class HttpResponseInfo; 30 class HttpResponseInfo;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // base::SystemMonitor::PowerObserver methods: 193 // base::SystemMonitor::PowerObserver methods:
193 // We invoke URLRequestJob::Kill on suspend (crbug.com/4606). 194 // We invoke URLRequestJob::Kill on suspend (crbug.com/4606).
194 virtual void OnSuspend() OVERRIDE; 195 virtual void OnSuspend() OVERRIDE;
195 196
196 // Called after a NetworkDelegate has been informed that the URLRequest 197 // Called after a NetworkDelegate has been informed that the URLRequest
197 // will be destroyed. This is used to track that no pending callbacks 198 // will be destroyed. This is used to track that no pending callbacks
198 // exist at destruction time of the URLRequestJob, unless they have been 199 // exist at destruction time of the URLRequestJob, unless they have been
199 // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call. 200 // canceled by an explicit NetworkDelegate::NotifyURLRequestDestroyed() call.
200 virtual void NotifyURLRequestDestroyed(); 201 virtual void NotifyURLRequestDestroyed();
201 202
203 // Called when the priority of the parent request changes.
204 virtual void SetPriority(RequestPriority priority);
205
202 protected: 206 protected:
203 friend class base::RefCounted<URLRequestJob>; 207 friend class base::RefCounted<URLRequestJob>;
204 virtual ~URLRequestJob(); 208 virtual ~URLRequestJob();
205 209
206 // Notifies the job that a certificate is requested. 210 // Notifies the job that a certificate is requested.
207 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); 211 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info);
208 212
209 // Notifies the job about an SSL certificate error. 213 // Notifies the job about an SSL certificate error.
210 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal); 214 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal);
211 215
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 NetworkDelegate* network_delegate_; 390 NetworkDelegate* network_delegate_;
387 391
388 base::WeakPtrFactory<URLRequestJob> weak_factory_; 392 base::WeakPtrFactory<URLRequestJob> weak_factory_;
389 393
390 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 394 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
391 }; 395 };
392 396
393 } // namespace net 397 } // namespace net
394 398
395 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 399 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698