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

Side by Side Diff: net/websockets/websocket_job.h

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
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_WEBSOCKETS_WEBSOCKET_JOB_H_ 5 #ifndef NET_WEBSOCKETS_WEBSOCKET_JOB_H_
6 #define NET_WEBSOCKETS_WEBSOCKET_JOB_H_ 6 #define NET_WEBSOCKETS_WEBSOCKET_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 13 matching lines...) Expand all
24 class WebSocketFrameHandler; 24 class WebSocketFrameHandler;
25 class WebSocketHandshakeRequestHandler; 25 class WebSocketHandshakeRequestHandler;
26 class WebSocketHandshakeResponseHandler; 26 class WebSocketHandshakeResponseHandler;
27 27
28 // WebSocket protocol specific job on SocketStream. 28 // WebSocket protocol specific job on SocketStream.
29 // It captures WebSocket handshake message and handles cookie operations. 29 // It captures WebSocket handshake message and handles cookie operations.
30 // Chrome security policy doesn't allow renderer process (except dev tools) 30 // Chrome security policy doesn't allow renderer process (except dev tools)
31 // see HttpOnly cookies, so it injects cookie header in handshake request and 31 // see HttpOnly cookies, so it injects cookie header in handshake request and
32 // strips set-cookie headers in handshake response. 32 // strips set-cookie headers in handshake response.
33 // TODO(ukai): refactor websocket.cc to use this. 33 // TODO(ukai): refactor websocket.cc to use this.
34 class NET_API WebSocketJob 34 class NET_EXPORT WebSocketJob
35 : public SocketStreamJob, 35 : public SocketStreamJob,
36 public SocketStream::Delegate, 36 public SocketStream::Delegate,
37 public SpdyWebSocketStream::Delegate { 37 public SpdyWebSocketStream::Delegate {
38 public: 38 public:
39 // This is state of WebSocket, not SocketStream. 39 // This is state of WebSocket, not SocketStream.
40 enum State { 40 enum State {
41 INITIALIZED = -1, 41 INITIALIZED = -1,
42 CONNECTING = 0, 42 CONNECTING = 0,
43 OPEN = 1, 43 OPEN = 1,
44 CLOSING = 2, 44 CLOSING = 2,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 ScopedRunnableMethodFactory<WebSocketJob> method_factory_; 140 ScopedRunnableMethodFactory<WebSocketJob> method_factory_;
141 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_; 141 base::WeakPtrFactory<WebSocketJob> weak_ptr_factory_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(WebSocketJob); 143 DISALLOW_COPY_AND_ASSIGN(WebSocketJob);
144 }; 144 };
145 145
146 } // namespace 146 } // namespace
147 147
148 #endif // NET_WEBSOCKETS_WEBSOCKET_JOB_H_ 148 #endif // NET_WEBSOCKETS_WEBSOCKET_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698