OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_WORKER_HOST_MESSAGE_PORT_SERVICE_H_ | 5 #ifndef CONTENT_BROWSER_WORKER_HOST_MESSAGE_PORT_SERVICE_H_ |
6 #define CONTENT_BROWSER_WORKER_HOST_MESSAGE_PORT_SERVICE_H_ | 6 #define CONTENT_BROWSER_WORKER_HOST_MESSAGE_PORT_SERVICE_H_ |
7 #pragma once | |
8 | 7 |
9 #include <map> | 8 #include <map> |
10 #include <utility> | 9 #include <utility> |
11 #include <vector> | 10 #include <vector> |
12 | 11 |
13 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
14 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
15 #include "base/string16.h" | 14 #include "base/string16.h" |
16 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
17 | 16 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 typedef std::map<int, MessagePort> MessagePorts; | 64 typedef std::map<int, MessagePort> MessagePorts; |
66 MessagePorts message_ports_; | 65 MessagePorts message_ports_; |
67 | 66 |
68 // We need globally unique identifiers for each message port. | 67 // We need globally unique identifiers for each message port. |
69 int next_message_port_id_; | 68 int next_message_port_id_; |
70 | 69 |
71 DISALLOW_COPY_AND_ASSIGN(MessagePortService); | 70 DISALLOW_COPY_AND_ASSIGN(MessagePortService); |
72 }; | 71 }; |
73 | 72 |
74 #endif // CONTENT_BROWSER_WORKER_HOST_MESSAGE_PORT_SERVICE_H_ | 73 #endif // CONTENT_BROWSER_WORKER_HOST_MESSAGE_PORT_SERVICE_H_ |
OLD | NEW |