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 CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_H_ |
7 #pragma once | |
8 | 7 |
9 #include <queue> | 8 #include <queue> |
10 #include <string> | 9 #include <string> |
11 #include <utility> | 10 #include <utility> |
12 | 11 |
13 #include "base/callback.h" | 12 #include "base/callback.h" |
14 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
15 #include "chrome/browser/extensions/api/api_resource.h" | 14 #include "chrome/browser/extensions/api/api_resource.h" |
16 #include "net/base/completion_callback.h" | 15 #include "net/base/completion_callback.h" |
17 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 CompletionCallback callback; | 101 CompletionCallback callback; |
103 int bytes_written; | 102 int bytes_written; |
104 }; | 103 }; |
105 std::queue<WriteRequest> write_queue_; | 104 std::queue<WriteRequest> write_queue_; |
106 scoped_refptr<net::IOBuffer> io_buffer_write_; | 105 scoped_refptr<net::IOBuffer> io_buffer_write_; |
107 }; | 106 }; |
108 | 107 |
109 } // namespace extensions | 108 } // namespace extensions |
110 | 109 |
111 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_H_ | 110 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_SOCKET_H_ |
OLD | NEW |