Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: content/browser/worker_host/message_port_service.h

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/tab_contents/web_drag_source_mac.mm ('k') | content/gpu/gpu_watchdog_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/memory/singleton.h" 14 #include "base/memory/singleton.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "base/task.h"
17 #include "ipc/ipc_message.h" 16 #include "ipc/ipc_message.h"
18 17
19 class WorkerMessageFilter; 18 class WorkerMessageFilter;
20 19
21 class MessagePortService { 20 class MessagePortService {
22 public: 21 public:
23 typedef std::vector<std::pair<string16, std::vector<int> > > QueuedMessages; 22 typedef std::vector<std::pair<string16, std::vector<int> > > QueuedMessages;
24 23
25 // Returns the MessagePortService singleton. 24 // Returns the MessagePortService singleton.
26 static MessagePortService* GetInstance(); 25 static MessagePortService* GetInstance();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 typedef std::map<int, MessagePort> MessagePorts; 65 typedef std::map<int, MessagePort> MessagePorts;
67 MessagePorts message_ports_; 66 MessagePorts message_ports_;
68 67
69 // We need globally unique identifiers for each message port. 68 // We need globally unique identifiers for each message port.
70 int next_message_port_id_; 69 int next_message_port_id_;
71 70
72 DISALLOW_COPY_AND_ASSIGN(MessagePortService); 71 DISALLOW_COPY_AND_ASSIGN(MessagePortService);
73 }; 72 };
74 73
75 #endif // CONTENT_BROWSER_WORKER_HOST_MESSAGE_PORT_SERVICE_H_ 74 #endif // CONTENT_BROWSER_WORKER_HOST_MESSAGE_PORT_SERVICE_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/web_drag_source_mac.mm ('k') | content/gpu/gpu_watchdog_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698