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_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SOCKET_SOCKET_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_H_ | 6 #define EXTENSIONS_BROWSER_API_SOCKET_SOCKET_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "extensions/browser/api/api_resource.h" | 14 #include "extensions/browser/api/api_resource.h" |
15 #include "extensions/browser/api/api_resource_manager.h" | 15 #include "extensions/browser/api/api_resource_manager.h" |
16 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 int byte_count; | 116 int byte_count; |
117 CompletionCallback callback; | 117 CompletionCallback callback; |
118 int bytes_written; | 118 int bytes_written; |
119 }; | 119 }; |
120 std::queue<WriteRequest> write_queue_; | 120 std::queue<WriteRequest> write_queue_; |
121 scoped_refptr<net::IOBuffer> io_buffer_write_; | 121 scoped_refptr<net::IOBuffer> io_buffer_write_; |
122 }; | 122 }; |
123 | 123 |
124 } // namespace extensions | 124 } // namespace extensions |
125 | 125 |
126 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_H_ | 126 #endif // EXTENSIONS_BROWSER_API_SOCKET_SOCKET_H_ |
OLD | NEW |