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

Side by Side Diff: content/common/message_router.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/common/media/audio_stream_state.h ('k') | content/common/navigation_gesture.h » ('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_COMMON_MESSAGE_ROUTER_H_ 5 #ifndef CONTENT_COMMON_MESSAGE_ROUTER_H_
6 #define CONTENT_COMMON_MESSAGE_ROUTER_H_ 6 #define CONTENT_COMMON_MESSAGE_ROUTER_H_
7 #pragma once
8 7
9 #include "base/id_map.h" 8 #include "base/id_map.h"
10 #include "ipc/ipc_listener.h" 9 #include "ipc/ipc_listener.h"
11 #include "ipc/ipc_sender.h" 10 #include "ipc/ipc_sender.h"
12 11
13 // The MessageRouter handles all incoming messages sent to it by routing them 12 // The MessageRouter handles all incoming messages sent to it by routing them
14 // to the correct listener. Routing is based on the Message's routing ID. 13 // to the correct listener. Routing is based on the Message's routing ID.
15 // Since routing IDs are typically assigned asynchronously by the browser 14 // Since routing IDs are typically assigned asynchronously by the browser
16 // process, the MessageRouter has the notion of pending IDs for listeners that 15 // process, the MessageRouter has the notion of pending IDs for listeners that
17 // have not yet been assigned a routing ID. 16 // have not yet been assigned a routing ID.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 IPC::Listener* ResolveRoute(int32 routing_id); 53 IPC::Listener* ResolveRoute(int32 routing_id);
55 54
56 private: 55 private:
57 // A list of all listeners with assigned routing IDs. 56 // A list of all listeners with assigned routing IDs.
58 IDMap<IPC::Listener> routes_; 57 IDMap<IPC::Listener> routes_;
59 58
60 DISALLOW_COPY_AND_ASSIGN(MessageRouter); 59 DISALLOW_COPY_AND_ASSIGN(MessageRouter);
61 }; 60 };
62 61
63 #endif // CONTENT_COMMON_MESSAGE_ROUTER_H_ 62 #endif // CONTENT_COMMON_MESSAGE_ROUTER_H_
OLDNEW
« no previous file with comments | « content/common/media/audio_stream_state.h ('k') | content/common/navigation_gesture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698