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

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

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 years, 1 month 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/spdy/spdy_proxy_client_socket.h ('k') | net/spdy/spdy_session_pool.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SPDY_SPDY_SESSION_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_H_
6 #define NET_SPDY_SPDY_SESSION_H_ 6 #define NET_SPDY_SPDY_SESSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <list> 10 #include <list>
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 void RecordHistograms(); 373 void RecordHistograms();
374 374
375 // Closes all streams. Used as part of shutdown. 375 // Closes all streams. Used as part of shutdown.
376 void CloseAllStreams(net::Error status); 376 void CloseAllStreams(net::Error status);
377 377
378 // Invokes a user callback for stream creation. We provide this method so it 378 // Invokes a user callback for stream creation. We provide this method so it
379 // can be deferred to the MessageLoop, so we avoid re-entrancy problems. 379 // can be deferred to the MessageLoop, so we avoid re-entrancy problems.
380 void InvokeUserStreamCreationCallback(scoped_refptr<SpdyStream>* stream); 380 void InvokeUserStreamCreationCallback(scoped_refptr<SpdyStream>* stream);
381 381
382 // SpdyFramerVisitorInterface: 382 // SpdyFramerVisitorInterface:
383 virtual void OnError(spdy::SpdyFramer*); 383 virtual void OnError(spdy::SpdyFramer*) OVERRIDE;
384 virtual void OnStreamFrameData(spdy::SpdyStreamId stream_id, 384 virtual void OnStreamFrameData(spdy::SpdyStreamId stream_id,
385 const char* data, 385 const char* data,
386 size_t len); 386 size_t len) OVERRIDE;
387 virtual void OnControl(const spdy::SpdyControlFrame* frame); 387 virtual void OnControl(const spdy::SpdyControlFrame* frame) OVERRIDE;
388 388
389 virtual bool OnControlFrameHeaderData(spdy::SpdyStreamId stream_id, 389 virtual bool OnControlFrameHeaderData(spdy::SpdyStreamId stream_id,
390 const char* header_data, 390 const char* header_data,
391 size_t len); 391 size_t len) OVERRIDE;
392 392
393 virtual void OnDataFrameHeader(const spdy::SpdyDataFrame* frame); 393 virtual void OnDataFrameHeader(const spdy::SpdyDataFrame* frame) OVERRIDE;
394 394
395 // -------------------------- 395 // --------------------------
396 // Helper methods for testing 396 // Helper methods for testing
397 // -------------------------- 397 // --------------------------
398 static void set_connection_at_risk_of_loss_seconds(int duration) { 398 static void set_connection_at_risk_of_loss_seconds(int duration) {
399 connection_at_risk_of_loss_seconds_ = duration; 399 connection_at_risk_of_loss_seconds_ = duration;
400 } 400 }
401 static int connection_at_risk_of_loss_seconds() { 401 static int connection_at_risk_of_loss_seconds() {
402 return connection_at_risk_of_loss_seconds_; 402 return connection_at_risk_of_loss_seconds_;
403 } 403 }
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 public: 596 public:
597 NetLogSpdySynParameter(const linked_ptr<spdy::SpdyHeaderBlock>& headers, 597 NetLogSpdySynParameter(const linked_ptr<spdy::SpdyHeaderBlock>& headers,
598 spdy::SpdyControlFlags flags, 598 spdy::SpdyControlFlags flags,
599 spdy::SpdyStreamId id, 599 spdy::SpdyStreamId id,
600 spdy::SpdyStreamId associated_stream); 600 spdy::SpdyStreamId associated_stream);
601 601
602 const linked_ptr<spdy::SpdyHeaderBlock>& GetHeaders() const { 602 const linked_ptr<spdy::SpdyHeaderBlock>& GetHeaders() const {
603 return headers_; 603 return headers_;
604 } 604 }
605 605
606 virtual base::Value* ToValue() const; 606 virtual base::Value* ToValue() const OVERRIDE;
607 607
608 private: 608 private:
609 virtual ~NetLogSpdySynParameter(); 609 virtual ~NetLogSpdySynParameter();
610 610
611 const linked_ptr<spdy::SpdyHeaderBlock> headers_; 611 const linked_ptr<spdy::SpdyHeaderBlock> headers_;
612 const spdy::SpdyControlFlags flags_; 612 const spdy::SpdyControlFlags flags_;
613 const spdy::SpdyStreamId id_; 613 const spdy::SpdyStreamId id_;
614 const spdy::SpdyStreamId associated_stream_; 614 const spdy::SpdyStreamId associated_stream_;
615 615
616 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); 616 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter);
617 }; 617 };
618 618
619 } // namespace net 619 } // namespace net
620 620
621 #endif // NET_SPDY_SPDY_SESSION_H_ 621 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket.h ('k') | net/spdy/spdy_session_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698