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 CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 5 #ifndef CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
6 #define CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 6 #define CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
10 #include "third_party/webrtc/p2p/client/basicportallocator.h" | 11 #include "third_party/webrtc/p2p/client/basicportallocator.h" |
11 #include "url/gurl.h" | 12 #include "url/gurl.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
15 class P2PSocketDispatcher; | 16 class P2PSocketDispatcher; |
16 | 17 |
17 class P2PPortAllocator : public cricket::BasicPortAllocator { | 18 class P2PPortAllocator : public cricket::BasicPortAllocator { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // to delete |network_manager_|. | 55 // to delete |network_manager_|. |
55 const scoped_refptr<base::SingleThreadTaskRunner> | 56 const scoped_refptr<base::SingleThreadTaskRunner> |
56 network_manager_task_runner_; | 57 network_manager_task_runner_; |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocator); | 59 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocator); |
59 }; | 60 }; |
60 | 61 |
61 } // namespace content | 62 } // namespace content |
62 | 63 |
63 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 64 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
OLD | NEW |