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

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

Issue 1828203005: Expose SPDY pushes in DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added a test 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
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_HTTP_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 NetworkDelegate* network_delegate, 54 NetworkDelegate* network_delegate,
55 const HttpUserAgentSettings* http_user_agent_settings); 55 const HttpUserAgentSettings* http_user_agent_settings);
56 56
57 ~URLRequestHttpJob() override; 57 ~URLRequestHttpJob() override;
58 58
59 // Overridden from URLRequestJob: 59 // Overridden from URLRequestJob:
60 void SetPriority(RequestPriority priority) override; 60 void SetPriority(RequestPriority priority) override;
61 void Start() override; 61 void Start() override;
62 void Kill() override; 62 void Kill() override;
63 void GetConnectionAttempts(ConnectionAttempts* out) const override; 63 void GetConnectionAttempts(ConnectionAttempts* out) const override;
64 void GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
64 65
65 RequestPriority priority() const { 66 RequestPriority priority() const {
66 return priority_; 67 return priority_;
67 } 68 }
68 69
69 private: 70 private:
70 enum CompletionCause { 71 enum CompletionCause {
71 ABORTED, 72 ABORTED,
72 FINISHED 73 FINISHED
73 }; 74 };
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void RestartTransactionWithAuth(const AuthCredentials& credentials); 116 void RestartTransactionWithAuth(const AuthCredentials& credentials);
116 117
117 // Overridden from URLRequestJob: 118 // Overridden from URLRequestJob:
118 void SetUpload(UploadDataStream* upload) override; 119 void SetUpload(UploadDataStream* upload) override;
119 void SetExtraRequestHeaders(const HttpRequestHeaders& headers) override; 120 void SetExtraRequestHeaders(const HttpRequestHeaders& headers) override;
120 LoadState GetLoadState() const override; 121 LoadState GetLoadState() const override;
121 UploadProgress GetUploadProgress() const override; 122 UploadProgress GetUploadProgress() const override;
122 bool GetMimeType(std::string* mime_type) const override; 123 bool GetMimeType(std::string* mime_type) const override;
123 bool GetCharset(std::string* charset) override; 124 bool GetCharset(std::string* charset) override;
124 void GetResponseInfo(HttpResponseInfo* info) override; 125 void GetResponseInfo(HttpResponseInfo* info) override;
125 void GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
126 bool GetRemoteEndpoint(IPEndPoint* endpoint) const override; 126 bool GetRemoteEndpoint(IPEndPoint* endpoint) const override;
127 bool GetResponseCookies(std::vector<std::string>* cookies) override; 127 bool GetResponseCookies(std::vector<std::string>* cookies) override;
128 int GetResponseCode() const override; 128 int GetResponseCode() const override;
129 void PopulateNetErrorDetails(NetErrorDetails* details) const override; 129 void PopulateNetErrorDetails(NetErrorDetails* details) const override;
130 Filter* SetupFilter() const override; 130 Filter* SetupFilter() const override;
131 bool CopyFragmentOnRedirect(const GURL& location) const override; 131 bool CopyFragmentOnRedirect(const GURL& location) const override;
132 bool IsSafeRedirect(const GURL& location) override; 132 bool IsSafeRedirect(const GURL& location) override;
133 bool NeedsAuth() override; 133 bool NeedsAuth() override;
134 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override; 134 void GetAuthChallengeInfo(scoped_refptr<AuthChallengeInfo>*) override;
135 void SetAuth(const AuthCredentials& credentials) override; 135 void SetAuth(const AuthCredentials& credentials) override;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 int64_t total_sent_bytes_from_previous_transactions_; 281 int64_t total_sent_bytes_from_previous_transactions_;
282 282
283 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_; 283 base::WeakPtrFactory<URLRequestHttpJob> weak_factory_;
284 284
285 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob); 285 DISALLOW_COPY_AND_ASSIGN(URLRequestHttpJob);
286 }; 286 };
287 287
288 } // namespace net 288 } // namespace net
289 289
290 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_ 290 #endif // NET_URL_REQUEST_URL_REQUEST_HTTP_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698