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

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

Issue 6400007: Implement proxy for 3d-related interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 10 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 | « ppapi/proxy/interface_id.h ('k') | ppapi/proxy/plugin_dispatcher.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_INTERFACE_PROXY_H_ 5 #ifndef PPAPI_PROXY_INTERFACE_PROXY_H_
6 #define PPAPI_PROXY_INTERFACE_PROXY_H_ 6 #define PPAPI_PROXY_INTERFACE_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ipc/ipc_channel.h" 9 #include "ipc/ipc_channel.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
(...skipping 27 matching lines...) Expand all
38 bool is_target_proxy() const { return !!target_interface_; } 38 bool is_target_proxy() const { return !!target_interface_; }
39 39
40 // When this proxy is the "target" of the IPC communication (see 40 // When this proxy is the "target" of the IPC communication (see
41 // dispatcher.h), this target_interface pointer will indicate the local 41 // dispatcher.h), this target_interface pointer will indicate the local
42 // side's interface pointer. This contains the functions that actually 42 // side's interface pointer. This contains the functions that actually
43 // implement the proxied interface. 43 // implement the proxied interface.
44 // 44 //
45 // This will be NULL when this proxy is a source proxy. 45 // This will be NULL when this proxy is a source proxy.
46 const void* target_interface() const { return target_interface_; } 46 const void* target_interface() const { return target_interface_; }
47 47
48 Dispatcher* dispatcher() { return dispatcher_; } 48 Dispatcher* dispatcher() const { return dispatcher_; }
49 49
50 // IPC::Message::Sender implementation. 50 // IPC::Message::Sender implementation.
51 virtual bool Send(IPC::Message* msg); 51 virtual bool Send(IPC::Message* msg);
52 52
53 // Returns the local implementation of the interface that will proxy it to 53 // Returns the local implementation of the interface that will proxy it to
54 // the remote side. This is used on the source side only (see dispatcher.h). 54 // the remote side. This is used on the source side only (see dispatcher.h).
55 virtual const void* GetSourceInterface() const = 0; 55 virtual const void* GetSourceInterface() const = 0;
56 56
57 // Returns the interface ID associated with this proxy. Implemented by each 57 // Returns the interface ID associated with this proxy. Implemented by each
58 // derived class to identify itself. 58 // derived class to identify itself.
(...skipping 17 matching lines...) Expand all
76 76
77 inline bool PPBoolToBool(PP_Bool value) { 77 inline bool PPBoolToBool(PP_Bool value) {
78 return (PP_TRUE == value); 78 return (PP_TRUE == value);
79 } 79 }
80 80
81 } // namespace proxy 81 } // namespace proxy
82 } // namespace pp 82 } // namespace pp
83 83
84 #endif // PPAPI_PROXY_INTERFACE_PROXY_H_ 84 #endif // PPAPI_PROXY_INTERFACE_PROXY_H_
85 85
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_id.h ('k') | ppapi/proxy/plugin_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698