OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The Native Client Authors. All rights reserved. | 2 * Copyright 2008 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 | 7 |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "native_client/src/trusted/plugin/srpc/srt_socket.h" | 10 #include "native_client/src/trusted/plugin/srt_socket.h" |
11 | 11 |
12 #include "native_client/src/include/nacl_string.h" | 12 #include "native_client/src/include/nacl_string.h" |
13 #include "native_client/src/trusted/plugin/srpc/browser_interface.h" | 13 #include "native_client/src/trusted/plugin/browser_interface.h" |
14 #include "native_client/src/trusted/plugin/srpc/plugin.h" | 14 #include "native_client/src/trusted/plugin/plugin.h" |
15 #include "native_client/src/trusted/plugin/srpc/service_runtime.h" | 15 #include "native_client/src/trusted/plugin/service_runtime.h" |
16 #include "native_client/src/trusted/plugin/srpc/srpc_client.h" | 16 #include "native_client/src/trusted/plugin/srpc_client.h" |
17 #include "native_client/src/trusted/plugin/srpc/utility.h" | 17 #include "native_client/src/trusted/plugin/utility.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Not really constants. Do not modify. Use only after at least | 21 // Not really constants. Do not modify. Use only after at least |
22 // one SrtSocket instance has been constructed. | 22 // one SrtSocket instance has been constructed. |
23 uintptr_t kSetOriginIdent; | 23 uintptr_t kSetOriginIdent; |
24 uintptr_t kStartModuleIdent; | 24 uintptr_t kStartModuleIdent; |
25 uintptr_t kLogIdent; | 25 uintptr_t kLogIdent; |
26 uintptr_t kLoadModule; | 26 uintptr_t kLoadModule; |
27 uintptr_t kInitHandlePassing; | 27 uintptr_t kInitHandlePassing; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 } | 188 } |
189 params.ins()[0]->u.ival = severity; | 189 params.ins()[0]->u.ival = severity; |
190 params.ins()[1]->u.sval = strdup(msg.c_str()); | 190 params.ins()[1]->u.sval = strdup(msg.c_str()); |
191 bool rpc_result = (connected_socket()->Invoke(kLogIdent, | 191 bool rpc_result = (connected_socket()->Invoke(kLogIdent, |
192 METHOD_CALL, | 192 METHOD_CALL, |
193 ¶ms)); | 193 ¶ms)); |
194 return rpc_result; | 194 return rpc_result; |
195 } | 195 } |
196 | 196 |
197 } // namespace plugin | 197 } // namespace plugin |
OLD | NEW |