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

Side by Side Diff: ppapi/proxy/ppb_core_proxy.cc

Issue 11094060: Exclude host-side code from the NaCl IRT proxy build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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/ppb_audio_proxy.cc ('k') | ppapi/proxy/ppb_file_io_proxy.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) 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 #include "ppapi/proxy/ppb_core_proxy.h" 5 #include "ppapi/proxy/ppb_core_proxy.h"
6 6
7 #include <stdlib.h> // For malloc 7 #include <stdlib.h> // For malloc
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 98
99 // static 99 // static
100 const PPB_Core* PPB_Core_Proxy::GetPPB_Core_Interface() { 100 const PPB_Core* PPB_Core_Proxy::GetPPB_Core_Interface() {
101 return &core_interface; 101 return &core_interface;
102 } 102 }
103 103
104 bool PPB_Core_Proxy::OnMessageReceived(const IPC::Message& msg) { 104 bool PPB_Core_Proxy::OnMessageReceived(const IPC::Message& msg) {
105 bool handled = true; 105 bool handled = true;
106 IPC_BEGIN_MESSAGE_MAP(PPB_Core_Proxy, msg) 106 IPC_BEGIN_MESSAGE_MAP(PPB_Core_Proxy, msg)
107 #if !defined(OS_NACL)
107 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBCore_AddRefResource, 108 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBCore_AddRefResource,
108 OnMsgAddRefResource) 109 OnMsgAddRefResource)
109 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBCore_ReleaseResource, 110 IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBCore_ReleaseResource,
110 OnMsgReleaseResource) 111 OnMsgReleaseResource)
112 #endif
111 IPC_MESSAGE_UNHANDLED(handled = false) 113 IPC_MESSAGE_UNHANDLED(handled = false)
112 IPC_END_MESSAGE_MAP() 114 IPC_END_MESSAGE_MAP()
113 // TODO(brettw) handle bad messages! 115 // TODO(brettw) handle bad messages!
114 return handled; 116 return handled;
115 } 117 }
116 118
119 #if !defined(OS_NACL)
117 void PPB_Core_Proxy::OnMsgAddRefResource(const HostResource& resource) { 120 void PPB_Core_Proxy::OnMsgAddRefResource(const HostResource& resource) {
118 ppb_core_impl_->AddRefResource(resource.host_resource()); 121 ppb_core_impl_->AddRefResource(resource.host_resource());
119 } 122 }
120 123
121 void PPB_Core_Proxy::OnMsgReleaseResource(const HostResource& resource) { 124 void PPB_Core_Proxy::OnMsgReleaseResource(const HostResource& resource) {
122 ppb_core_impl_->ReleaseResource(resource.host_resource()); 125 ppb_core_impl_->ReleaseResource(resource.host_resource());
123 } 126 }
127 #endif // !defined(OS_NACL)
124 128
125 } // namespace proxy 129 } // namespace proxy
126 } // namespace ppapi 130 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_audio_proxy.cc ('k') | ppapi/proxy/ppb_file_io_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698