| OLD | NEW |
| 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 | 5 |
| 6 #include "hello_nacl_mounts.h" | 6 #include "hello_nacl_mounts.h" |
| 7 | 7 |
| 8 #include <assert.h> | 8 #include <assert.h> |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 #include <stdlib.h> | 10 #include <stdlib.h> |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 const char* argv[]) { | 276 const char* argv[]) { |
| 277 g_instance = instance; | 277 g_instance = instance; |
| 278 nacl_mounts_init_ppapi(instance, get_browser_interface); | 278 nacl_mounts_init_ppapi(instance, get_browser_interface); |
| 279 mount( | 279 mount( |
| 280 "", /* source */ | 280 "", /* source */ |
| 281 "/persistent", /* target */ | 281 "/persistent", /* target */ |
| 282 "html5fs", /* filesystemtype */ | 282 "html5fs", /* filesystemtype */ |
| 283 0, /* mountflags */ | 283 0, /* mountflags */ |
| 284 "type=PERSISTENT,expected_size=1048576"); /* data */ | 284 "type=PERSISTENT,expected_size=1048576"); /* data */ |
| 285 | 285 |
| 286 mount( |
| 287 "", /* source. Use relative URL */ |
| 288 "/http", /* target */ |
| 289 "httpfs", /* filesystemtype */ |
| 290 0, /* mountflags */ |
| 291 ""); /* data */ |
| 292 |
| 286 pthread_create(&g_handle_message_thread, NULL, &HandleMessageThread, NULL); | 293 pthread_create(&g_handle_message_thread, NULL, &HandleMessageThread, NULL); |
| 287 InitializeMessageQueue(); | 294 InitializeMessageQueue(); |
| 288 | 295 |
| 289 return PP_TRUE; | 296 return PP_TRUE; |
| 290 } | 297 } |
| 291 | 298 |
| 292 | 299 |
| 293 static void Instance_DidDestroy(PP_Instance instance) { | 300 static void Instance_DidDestroy(PP_Instance instance) { |
| 294 } | 301 } |
| 295 | 302 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 &Messaging_HandleMessage, | 352 &Messaging_HandleMessage, |
| 346 }; | 353 }; |
| 347 return &messaging_interface; | 354 return &messaging_interface; |
| 348 } | 355 } |
| 349 return NULL; | 356 return NULL; |
| 350 } | 357 } |
| 351 | 358 |
| 352 | 359 |
| 353 PP_EXPORT void PPP_ShutdownModule() { | 360 PP_EXPORT void PPP_ShutdownModule() { |
| 354 } | 361 } |
| OLD | NEW |