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

Side by Side Diff: net/http/http_cache_transaction.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
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_cache_unittest.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 // This file declares HttpCache::Transaction, a private class of HttpCache so 5 // This file declares HttpCache::Transaction, a private class of HttpCache so
6 // it should only be included by http_cache.cc 6 // it should only be included by http_cache.cc
7 7
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const BoundNetLog& net_log() const; 105 const BoundNetLog& net_log() const;
106 106
107 // Bypasses the cache lock whenever there is lock contention. 107 // Bypasses the cache lock whenever there is lock contention.
108 void BypassLockForTest() { 108 void BypassLockForTest() {
109 bypass_lock_for_test_ = true; 109 bypass_lock_for_test_ = true;
110 } 110 }
111 111
112 // HttpTransaction methods: 112 // HttpTransaction methods:
113 virtual int Start(const HttpRequestInfo* request_info, 113 virtual int Start(const HttpRequestInfo* request_info,
114 const CompletionCallback& callback, 114 const CompletionCallback& callback,
115 const BoundNetLog& net_log) OVERRIDE; 115 const BoundNetLog& net_log) override;
116 virtual int RestartIgnoringLastError( 116 virtual int RestartIgnoringLastError(
117 const CompletionCallback& callback) OVERRIDE; 117 const CompletionCallback& callback) override;
118 virtual int RestartWithCertificate( 118 virtual int RestartWithCertificate(
119 X509Certificate* client_cert, 119 X509Certificate* client_cert,
120 const CompletionCallback& callback) OVERRIDE; 120 const CompletionCallback& callback) override;
121 virtual int RestartWithAuth(const AuthCredentials& credentials, 121 virtual int RestartWithAuth(const AuthCredentials& credentials,
122 const CompletionCallback& callback) OVERRIDE; 122 const CompletionCallback& callback) override;
123 virtual bool IsReadyToRestartForAuth() OVERRIDE; 123 virtual bool IsReadyToRestartForAuth() override;
124 virtual int Read(IOBuffer* buf, 124 virtual int Read(IOBuffer* buf,
125 int buf_len, 125 int buf_len,
126 const CompletionCallback& callback) OVERRIDE; 126 const CompletionCallback& callback) override;
127 virtual void StopCaching() OVERRIDE; 127 virtual void StopCaching() override;
128 virtual bool GetFullRequestHeaders( 128 virtual bool GetFullRequestHeaders(
129 HttpRequestHeaders* headers) const OVERRIDE; 129 HttpRequestHeaders* headers) const override;
130 virtual int64 GetTotalReceivedBytes() const OVERRIDE; 130 virtual int64 GetTotalReceivedBytes() const override;
131 virtual void DoneReading() OVERRIDE; 131 virtual void DoneReading() override;
132 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; 132 virtual const HttpResponseInfo* GetResponseInfo() const override;
133 virtual LoadState GetLoadState() const OVERRIDE; 133 virtual LoadState GetLoadState() const override;
134 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; 134 virtual UploadProgress GetUploadProgress(void) const override;
135 virtual void SetQuicServerInfo(QuicServerInfo* quic_server_info) OVERRIDE; 135 virtual void SetQuicServerInfo(QuicServerInfo* quic_server_info) override;
136 virtual bool GetLoadTimingInfo( 136 virtual bool GetLoadTimingInfo(
137 LoadTimingInfo* load_timing_info) const OVERRIDE; 137 LoadTimingInfo* load_timing_info) const override;
138 virtual void SetPriority(RequestPriority priority) OVERRIDE; 138 virtual void SetPriority(RequestPriority priority) override;
139 virtual void SetWebSocketHandshakeStreamCreateHelper( 139 virtual void SetWebSocketHandshakeStreamCreateHelper(
140 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) OVERRIDE; 140 net::WebSocketHandshakeStreamBase::CreateHelper* create_helper) override;
141 virtual void SetBeforeNetworkStartCallback( 141 virtual void SetBeforeNetworkStartCallback(
142 const BeforeNetworkStartCallback& callback) OVERRIDE; 142 const BeforeNetworkStartCallback& callback) override;
143 virtual void SetBeforeProxyHeadersSentCallback( 143 virtual void SetBeforeProxyHeadersSentCallback(
144 const BeforeProxyHeadersSentCallback& callback) OVERRIDE; 144 const BeforeProxyHeadersSentCallback& callback) override;
145 virtual int ResumeNetworkStart() OVERRIDE; 145 virtual int ResumeNetworkStart() override;
146 146
147 private: 147 private:
148 static const size_t kNumValidationHeaders = 2; 148 static const size_t kNumValidationHeaders = 2;
149 // Helper struct to pair a header name with its value, for 149 // Helper struct to pair a header name with its value, for
150 // headers used to validate cache entries. 150 // headers used to validate cache entries.
151 struct ValidationHeaders { 151 struct ValidationHeaders {
152 ValidationHeaders() : initialized(false) {} 152 ValidationHeaders() : initialized(false) {}
153 153
154 std::string values[kNumValidationHeaders]; 154 std::string values[kNumValidationHeaders];
155 bool initialized; 155 bool initialized;
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; 469 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_;
470 470
471 base::WeakPtrFactory<Transaction> weak_factory_; 471 base::WeakPtrFactory<Transaction> weak_factory_;
472 472
473 DISALLOW_COPY_AND_ASSIGN(Transaction); 473 DISALLOW_COPY_AND_ASSIGN(Transaction);
474 }; 474 };
475 475
476 } // namespace net 476 } // namespace net
477 477
478 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 478 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698