| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client 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 #include "native_client/tests/ppapi_geturl/module.h" | 5 #include "native_client/tests/ppapi_geturl/module.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 printf("--- ReportResult posts result string:\n\t%s\n", result.c_str()); | 314 printf("--- ReportResult posts result string:\n\t%s\n", result.c_str()); |
| 315 struct PP_Var var_result = StrToVar(result); | 315 struct PP_Var var_result = StrToVar(result); |
| 316 ppb_messaging_interface()->PostMessage(pp_instance, var_result); | 316 ppb_messaging_interface()->PostMessage(pp_instance, var_result); |
| 317 // If the message was created using VarFromUtf8() it needs to be released. | 317 // If the message was created using VarFromUtf8() it needs to be released. |
| 318 // See the comments about VarFromUtf8() in ppapi/c/ppb_var.h for more | 318 // See the comments about VarFromUtf8() in ppapi/c/ppb_var.h for more |
| 319 // information. | 319 // information. |
| 320 if (var_result.type == PP_VARTYPE_STRING) { | 320 if (var_result.type == PP_VARTYPE_STRING) { |
| 321 ppb_var_interface()->Release(var_result); | 321 ppb_var_interface()->Release(var_result); |
| 322 } | 322 } |
| 323 } | 323 } |
| OLD | NEW |