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

Side by Side Diff: net/spdy/spdy_session.cc

Issue 10825437: net: Fix more clang warnings about missing virtual and OVERRIDE annotations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « net/socket/client_socket_factory.cc ('k') | net/url_request/url_request_http_job.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 #include "net/spdy/spdy_session.h" 5 #include "net/spdy/spdy_session.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 SimpleSpdyIOBufferProducer(SpdyFrame* frame, 1157 SimpleSpdyIOBufferProducer(SpdyFrame* frame,
1158 RequestPriority priority) 1158 RequestPriority priority)
1159 : frame_(frame), 1159 : frame_(frame),
1160 priority_(priority) { 1160 priority_(priority) {
1161 } 1161 }
1162 1162
1163 virtual RequestPriority GetPriority() const OVERRIDE { 1163 virtual RequestPriority GetPriority() const OVERRIDE {
1164 return priority_; 1164 return priority_;
1165 } 1165 }
1166 1166
1167 virtual SpdyIOBuffer* ProduceNextBuffer(SpdySession* session) { 1167 virtual SpdyIOBuffer* ProduceNextBuffer(SpdySession* session) OVERRIDE {
1168 return SpdySession::SpdyIOBufferProducer::CreateIOBuffer( 1168 return SpdySession::SpdyIOBufferProducer::CreateIOBuffer(
1169 frame_.get(), priority_, NULL); 1169 frame_.get(), priority_, NULL);
1170 } 1170 }
1171 1171
1172 private: 1172 private:
1173 scoped_ptr<SpdyFrame> frame_; 1173 scoped_ptr<SpdyFrame> frame_;
1174 RequestPriority priority_; 1174 RequestPriority priority_;
1175 }; 1175 };
1176 1176
1177 void SpdySession::QueueFrame(SpdyFrame* frame, 1177 void SpdySession::QueueFrame(SpdyFrame* frame,
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 SSLClientSocket* SpdySession::GetSSLClientSocket() const { 1990 SSLClientSocket* SpdySession::GetSSLClientSocket() const {
1991 if (!is_secure_) 1991 if (!is_secure_)
1992 return NULL; 1992 return NULL;
1993 SSLClientSocket* ssl_socket = 1993 SSLClientSocket* ssl_socket =
1994 reinterpret_cast<SSLClientSocket*>(connection_->socket()); 1994 reinterpret_cast<SSLClientSocket*>(connection_->socket());
1995 DCHECK(ssl_socket); 1995 DCHECK(ssl_socket);
1996 return ssl_socket; 1996 return ssl_socket;
1997 } 1997 }
1998 1998
1999 } // namespace net 1999 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/client_socket_factory.cc ('k') | net/url_request/url_request_http_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698