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

Side by Side Diff: native_client_sdk/src/doc/faq.rst

Issue 912633002: NaCl docs: clarify Chrome apps instead of packaged apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 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
OLDNEW
1 ########################## 1 ##########################
2 Frequently Asked Questions 2 Frequently Asked Questions
3 ########################## 3 ##########################
4 4
5 .. contents:: 5 .. contents::
6 :local: 6 :local:
7 :backlinks: none 7 :backlinks: none
8 :depth: 2 8 :depth: 2
9 9
10 This document answers some frequently asked questions about Native 10 This document answers some frequently asked questions about Native
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 take care of most of the necessary changes. You may need to make some 488 take care of most of the necessary changes. You may need to make some
489 changes to your operating system calls and interactions with external 489 changes to your operating system calls and interactions with external
490 devices to work with the web. Porting existing Linux libraries is 490 devices to work with the web. Porting existing Linux libraries is
491 generally straightforward, with large libraries often requiring no 491 generally straightforward, with large libraries often requiring no
492 source change. 492 source change.
493 493
494 The following kinds of code may be more challenging to port: 494 The following kinds of code may be more challenging to port:
495 495
496 * Code that does direct `TCP <pepper_stable/cpp/classpp_1_1_t_c_p_socket>`_ or 496 * Code that does direct `TCP <pepper_stable/cpp/classpp_1_1_t_c_p_socket>`_ or
497 `UDP <pepper_stable/cpp/classpp_1_1_u_d_p_socket>`_ networking. For security 497 `UDP <pepper_stable/cpp/classpp_1_1_u_d_p_socket>`_ networking. For security
498 reasons these APIs are only available to `packaged applications 498 reasons these APIs are only available to `Chrome apps </apps>`_ after asking
499 </apps/about_apps>`_ after asking for the appropriate permissions, not on the 499 for the appropriate permissions, not on the open web. Native Client is
500 open web. Native Client is otherwise restricted to the networking APIs 500 otherwise restricted to the networking APIs available in the browser. You may
501 available in the browser. You may want to use to `nacl_io library <nacl_io>`_ 501 want to use to `nacl_io library <nacl_io>`_ to use POSIX-like sockets.
502 to use POSIX-like sockets.
503 * Code that creates processes, including UNIX ``fork``, won't function 502 * Code that creates processes, including UNIX ``fork``, won't function
504 as-is. However, threads are supported. You can nonetheless create new 503 as-is. However, threads are supported. You can nonetheless create new
505 ``<embed>`` tags in your HTML page to launch new PNaCl processes. You can even 504 ``<embed>`` tags in your HTML page to launch new PNaCl processes. You can even
506 use new ``.pexe`` files that your existing ``.pexe`` saved in a local 505 use new ``.pexe`` files that your existing ``.pexe`` saved in a local
507 filesystem. This is somewhat akin to ``execve``, but the process management 506 filesystem. This is somewhat akin to ``execve``, but the process management
508 has to go through ``postMessage`` to JavaScript in order to create the new 507 has to go through ``postMessage`` to JavaScript in order to create the new
509 ``<embed>``. 508 ``<embed>``.
510 * Code that needs to do local file I/O. Native Client is restricted to accessing 509 * Code that needs to do local file I/O. Native Client is restricted to accessing
511 URLs and to local storage in the browser (the Pepper :doc:`File IO API 510 URLs and to local storage in the browser (the Pepper :doc:`File IO API
512 <devguide/coding/file-io>` has access to the same per-application storage that 511 <devguide/coding/file-io>` has access to the same per-application storage that
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 .. _Rust: http://www.rust-lang.org/ 587 .. _Rust: http://www.rust-lang.org/
589 .. _Go: https://golang.org 588 .. _Go: https://golang.org
590 .. _native-client-discuss: https://groups.google.com/group/native-client-discuss 589 .. _native-client-discuss: https://groups.google.com/group/native-client-discuss
591 .. _deprecated in Chrome: http://blog.chromium.org/2013/09/saying-goodbye-to-our -old-friend-npapi.html 590 .. _deprecated in Chrome: http://blog.chromium.org/2013/09/saying-goodbye-to-our -old-friend-npapi.html
592 .. _OpenGL ES 2.0: https://www.khronos.org/opengles/ 591 .. _OpenGL ES 2.0: https://www.khronos.org/opengles/
593 .. _GLES2 file: https://code.google.com/p/chromium/codesearch#chromium/src/ppapi /lib/gl/gles2/gles2.c 592 .. _GLES2 file: https://code.google.com/p/chromium/codesearch#chromium/src/ppapi /lib/gl/gles2/gles2.c
594 .. _Google Chrome privacy policy: https://www.google.com/chrome/intl/en/privacy. html 593 .. _Google Chrome privacy policy: https://www.google.com/chrome/intl/en/privacy. html
595 .. _Google Chrome Terms of Service: https://www.google.com/chrome/intl/en/eula_t ext.html 594 .. _Google Chrome Terms of Service: https://www.google.com/chrome/intl/en/eula_t ext.html
596 .. _naclports: https://code.google.com/p/naclports 595 .. _naclports: https://code.google.com/p/naclports
597 .. _CORS: http://en.wikipedia.org/wiki/Cross-origin_resource_sharing 596 .. _CORS: http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
OLDNEW
« no previous file with comments | « native_client_sdk/src/doc/devguide/tutorial/tutorial-part2.rst ('k') | native_client_sdk/src/doc/sdk/examples.rst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698