OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_ | 5 #ifndef CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_ |
6 #define CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_ | 6 #define CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 private: | 63 private: |
64 void OnConnectResult(int thread_id, int request_id, bool allow_connect); | 64 void OnConnectResult(int thread_id, int request_id, bool allow_connect); |
65 | 65 |
66 // WorkerTaskRunner::Observer implementation. | 66 // WorkerTaskRunner::Observer implementation. |
67 void OnWorkerRunLoopStopped() override; | 67 void OnWorkerRunLoopStopped() override; |
68 | 68 |
69 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 69 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
70 scoped_refptr<base::SingleThreadTaskRunner> main_loop_; | 70 scoped_refptr<base::SingleThreadTaskRunner> main_loop_; |
71 typedef blink::WebCallbacks<void, void> ConnectCallback; | 71 typedef blink::WebCallbacks<void, void> ConnectCallback; |
72 IDMap<ConnectCallback> requests_; | 72 IDMap<ConnectCallback, IDMapOwnPointer> requests_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(NavigatorConnectProvider); | 74 DISALLOW_COPY_AND_ASSIGN(NavigatorConnectProvider); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace content | 77 } // namespace content |
78 | 78 |
79 #endif // CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_ | 79 #endif // CONTENT_CHILD_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_PROVIDER_H_ |
OLD | NEW |