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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 years, 2 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_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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void set_load_timing_info(const LoadTimingInfo& load_timing_info) { 101 void set_load_timing_info(const LoadTimingInfo& load_timing_info) {
102 load_timing_info_ = load_timing_info; 102 load_timing_info_ = load_timing_info;
103 } 103 }
104 104
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:
126 // Override to specify whether the next read done from this job will 126 // Override to specify whether the next read done from this job will
127 // return IO pending. This controls whether or not the WAITING state will 127 // return IO pending. This controls whether or not the WAITING state will
128 // transition back to WAITING or to DATA_AVAILABLE after an asynchronous 128 // transition back to WAITING or to DATA_AVAILABLE after an asynchronous
129 // read is processed. 129 // read is processed.
130 virtual bool NextReadAsync(); 130 virtual bool NextReadAsync();
131 131
132 // This is what operation we are going to do next when this job is handled. 132 // This is what operation we are going to do next when this job is handled.
133 // When the stage is DONE, this job will not be put on the queue. 133 // When the stage is DONE, this job will not be put on the queue.
(...skipping 33 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
« no previous file with comments | « net/url_request/url_request_simple_job_unittest.cc ('k') | net/url_request/url_request_test_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698