OLD | NEW |
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 #ifndef CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "chrome/browser/extensions/api/api_function.h" | 10 #include "chrome/browser/extensions/api/api_function.h" |
11 #include "chrome/common/extensions/api/experimental.socket.h" | 11 #include "chrome/common/extensions/api/experimental_socket.h" |
12 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 namespace extensions { | 16 namespace extensions { |
17 | 17 |
18 class APIResourceController; | 18 class APIResourceController; |
19 class APIResourceEventNotifier; | 19 class APIResourceEventNotifier; |
20 | 20 |
21 extern const char kBytesWrittenKey[]; | 21 extern const char kBytesWrittenKey[]; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 int socket_id_; | 197 int socket_id_; |
198 scoped_refptr<net::IOBuffer> io_buffer_; | 198 scoped_refptr<net::IOBuffer> io_buffer_; |
199 size_t io_buffer_size_; | 199 size_t io_buffer_size_; |
200 std::string address_; | 200 std::string address_; |
201 int port_; | 201 int port_; |
202 }; | 202 }; |
203 | 203 |
204 } // namespace extensions | 204 } // namespace extensions |
205 | 205 |
206 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ | 206 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_API_H_ |
OLD | NEW |