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

Side by Side Diff: net/spdy/spdy_websocket_stream.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_stream.h ('k') | net/tools/fetch/http_listen_socket.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_WEBSOCKET_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_WEBSOCKET_STREAM_H_
6 #define NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ 6 #define NET_SPDY_SPDY_WEBSOCKET_STREAM_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // after completion. In other cases, delegate does not be called. 62 // after completion. In other cases, delegate does not be called.
63 int InitializeStream(const GURL& url, 63 int InitializeStream(const GURL& url,
64 RequestPriority request_priority, 64 RequestPriority request_priority,
65 const BoundNetLog& stream_net_log); 65 const BoundNetLog& stream_net_log);
66 66
67 int SendRequest(const linked_ptr<spdy::SpdyHeaderBlock>& headers); 67 int SendRequest(const linked_ptr<spdy::SpdyHeaderBlock>& headers);
68 int SendData(const char* data, int length); 68 int SendData(const char* data, int length);
69 void Close(); 69 void Close();
70 70
71 // SpdyStream::Delegate 71 // SpdyStream::Delegate
72 virtual bool OnSendHeadersComplete(int status); 72 virtual bool OnSendHeadersComplete(int status) OVERRIDE;
73 virtual int OnSendBody(); 73 virtual int OnSendBody() OVERRIDE;
74 virtual int OnSendBodyComplete(int status, bool* eof); 74 virtual int OnSendBodyComplete(int status, bool* eof) OVERRIDE;
75 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response, 75 virtual int OnResponseReceived(const spdy::SpdyHeaderBlock& response,
76 base::Time response_time, 76 base::Time response_time,
77 int status); 77 int status) OVERRIDE;
78 virtual void OnDataReceived(const char* data, int length); 78 virtual void OnDataReceived(const char* data, int length) OVERRIDE;
79 virtual void OnDataSent(int length); 79 virtual void OnDataSent(int length) OVERRIDE;
80 virtual void OnClose(int status); 80 virtual void OnClose(int status) OVERRIDE;
81 virtual void set_chunk_callback(ChunkCallback* callback); 81 virtual void set_chunk_callback(ChunkCallback* callback) OVERRIDE;
82 82
83 private: 83 private:
84 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamTest, Basic); 84 FRIEND_TEST_ALL_PREFIXES(SpdyWebSocketStreamTest, Basic);
85 85
86 void OnSpdyStreamCreated(int status); 86 void OnSpdyStreamCreated(int status);
87 87
88 scoped_refptr<SpdyStream> stream_; 88 scoped_refptr<SpdyStream> stream_;
89 scoped_refptr<SpdySession> spdy_session_; 89 scoped_refptr<SpdySession> spdy_session_;
90 Delegate* delegate_; 90 Delegate* delegate_;
91 91
92 OldCompletionCallbackImpl<SpdyWebSocketStream> spdy_stream_created_callback_; 92 OldCompletionCallbackImpl<SpdyWebSocketStream> spdy_stream_created_callback_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream); 94 DISALLOW_COPY_AND_ASSIGN(SpdyWebSocketStream);
95 }; 95 };
96 96
97 } // namespace net 97 } // namespace net
98 98
99 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_ 99 #endif // NET_SPDY_SPDY_WEBSOCKET_STREAM_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream.h ('k') | net/tools/fetch/http_listen_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698