| OLD | NEW |
| 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 CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 | 12 |
| 13 struct sockaddr; | |
| 14 | |
| 15 namespace chromeos { | 13 namespace chromeos { |
| 16 | 14 |
| 17 class WebSocketProxy { | 15 class WebSocketProxy { |
| 18 public: | 16 public: |
| 19 static const size_t kBufferLimit = 12 * 1024 * 1024; | 17 static const size_t kBufferLimit = 12 * 1024 * 1024; |
| 20 | 18 |
| 21 // Limits incoming websocket headers in initial stage of connection. | 19 // Limits incoming websocket headers in initial stage of connection. |
| 22 static const size_t kHeaderLimit = 32 * 1024; | 20 static const size_t kHeaderLimit = 32 * 1024; |
| 23 | 21 |
| 24 // Limits number of simultaneously open connections. | 22 // Limits number of simultaneously open connections. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 39 | 37 |
| 40 private: | 38 private: |
| 41 void* impl_; | 39 void* impl_; |
| 42 | 40 |
| 43 DISALLOW_COPY_AND_ASSIGN(WebSocketProxy); | 41 DISALLOW_COPY_AND_ASSIGN(WebSocketProxy); |
| 44 }; | 42 }; |
| 45 | 43 |
| 46 } // namespace chromeos | 44 } // namespace chromeos |
| 47 | 45 |
| 48 #endif // CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_H_ | 46 #endif // CHROME_BROWSER_CHROMEOS_WEB_SOCKET_PROXY_H_ |
| OLD | NEW |