| 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_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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
| 14 #include "base/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class WorkerMessageFilter; | 18 class WorkerMessageFilter; |
| 19 | 19 |
| 20 class MessagePortService { | 20 class MessagePortService { |
| 21 public: | 21 public: |
| 22 typedef std::vector<std::pair<string16, std::vector<int> > > QueuedMessages; | 22 typedef std::vector<std::pair<string16, std::vector<int> > > QueuedMessages; |
| 23 | 23 |
| 24 // Returns the MessagePortService singleton. | 24 // Returns the MessagePortService singleton. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // We need globally unique identifiers for each message port. | 68 // We need globally unique identifiers for each message port. |
| 69 int next_message_port_id_; | 69 int next_message_port_id_; |
| 70 | 70 |
| 71 DISALLOW_COPY_AND_ASSIGN(MessagePortService); | 71 DISALLOW_COPY_AND_ASSIGN(MessagePortService); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace content | 74 } // namespace content |
| 75 | 75 |
| 76 #endif // CONTENT_BROWSER_WORKER_HOST_MESSAGE_PORT_SERVICE_H_ | 76 #endif // CONTENT_BROWSER_WORKER_HOST_MESSAGE_PORT_SERVICE_H_ |
| OLD | NEW |