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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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_TEST_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_TEST_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_TEST_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_TEST_JOB_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 RequestPriority priority() const { return priority_; } 105 RequestPriority priority() const { return priority_; }
106 106
107 // Create a protocol handler for callers that don't subclass. 107 // Create a protocol handler for callers that don't subclass.
108 static URLRequestJobFactory::ProtocolHandler* CreateProtocolHandler(); 108 static URLRequestJobFactory::ProtocolHandler* CreateProtocolHandler();
109 109
110 // Job functions 110 // Job functions
111 virtual void SetPriority(RequestPriority priority) OVERRIDE; 111 virtual void SetPriority(RequestPriority priority) OVERRIDE;
112 virtual void Start() OVERRIDE; 112 virtual void Start() OVERRIDE;
113 virtual bool ReadRawData(IOBuffer* buf, 113 virtual bool ReadRawData(IOBuffer* buf,
114 int buf_size, 114 int buf_size,
115 int *bytes_read) OVERRIDE; 115 int* bytes_read) OVERRIDE;
116 virtual void Kill() OVERRIDE; 116 virtual void Kill() OVERRIDE;
117 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE; 117 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
118 virtual void GetResponseInfo(HttpResponseInfo* info) OVERRIDE; 118 virtual void GetResponseInfo(HttpResponseInfo* info) OVERRIDE;
119 virtual void GetLoadTimingInfo( 119 virtual void GetLoadTimingInfo(
120 LoadTimingInfo* load_timing_info) const OVERRIDE; 120 LoadTimingInfo* load_timing_info) const OVERRIDE;
121 virtual int GetResponseCode() const OVERRIDE; 121 virtual int GetResponseCode() const OVERRIDE;
122 virtual bool IsRedirectResponse(GURL* location, 122 virtual bool IsRedirectResponse(GURL* location,
123 int* http_status_code) OVERRIDE; 123 int* http_status_code) OVERRIDE;
124 124
125 protected: 125 protected:
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 int async_buf_size_; 167 int async_buf_size_;
168 168
169 LoadTimingInfo load_timing_info_; 169 LoadTimingInfo load_timing_info_;
170 170
171 base::WeakPtrFactory<URLRequestTestJob> weak_factory_; 171 base::WeakPtrFactory<URLRequestTestJob> weak_factory_;
172 }; 172 };
173 173
174 } // namespace net 174 } // namespace net
175 175
176 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_JOB_H_ 176 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698