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

Side by Side Diff: ppapi/proxy/connection.h

Issue 19704009: Pepper: Add routing ID information to Connection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
OLDNEW
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 PPAPI_PROXY_CONNECTION_H_ 5 #ifndef PPAPI_PROXY_CONNECTION_H_
6 #define PPAPI_PROXY_CONNECTION_H_ 6 #define PPAPI_PROXY_CONNECTION_H_
7 7
8 #include "ipc/ipc_message.h"
9
8 namespace IPC { 10 namespace IPC {
9 class Sender; 11 class Sender;
10 } 12 }
11 13
12 namespace ppapi { 14 namespace ppapi {
13 namespace proxy { 15 namespace proxy {
14 16
15 // This struct holds the channels that a resource uses to send message to the 17 // This struct holds the channels that a resource uses to send message to the
16 // browser and renderer. 18 // browser and renderer.
17 struct Connection { 19 struct Connection {
18 Connection() : browser_sender(0), renderer_sender(0) { 20 Connection() : browser_sender(0),
21 renderer_sender(0),
22 in_process(false),
23 routing_id(MSG_ROUTING_NONE) {
19 } 24 }
20 Connection(IPC::Sender* browser, IPC::Sender* renderer) 25 Connection(IPC::Sender* browser, IPC::Sender* renderer)
21 : browser_sender(browser), 26 : browser_sender(browser),
22 renderer_sender(renderer) { 27 renderer_sender(renderer),
28 in_process(false),
29 routing_id(MSG_ROUTING_NONE) {
30 }
31 Connection(IPC::Sender* browser, IPC::Sender* renderer, int routing_id)
32 : browser_sender(browser),
33 renderer_sender(renderer),
34 in_process(true),
35 routing_id(routing_id) {
23 } 36 }
24 37
25 IPC::Sender* browser_sender; 38 IPC::Sender* browser_sender;
26 IPC::Sender* renderer_sender; 39 IPC::Sender* renderer_sender;
40 bool in_process;
41 int routing_id;
yzshen1 2013/07/23 17:44:01 - Please add comments about why we need this |rout
teravest 2013/07/23 17:59:51 Done.
27 }; 42 };
28 43
29 } // namespace proxy 44 } // namespace proxy
30 } // namespace ppapi 45 } // namespace ppapi
31 46
32 47
33 #endif // PPAPI_PROXY_CONNECTION_H_ 48 #endif // PPAPI_PROXY_CONNECTION_H_
34 49
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698