OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="url-loading"> | 3 <b><font color="#cc0000"> |
4 <span id="devguide-coding-url-loading"></span><h1 id="url-loading"><span id="dev
guide-coding-url-loading"></span>URL Loading</h1> | 4 NOTE: |
| 5 Deprecation of the technologies described here has been announced |
| 6 for platforms other than ChromeOS.<br/> |
| 7 Please visit our |
| 8 <a href="/native-client/migration">migration guide</a> |
| 9 for details. |
| 10 </font></b> |
| 11 <hr/><section id="url-loading"> |
| 12 <h1 id="url-loading">URL Loading</h1> |
5 <div class="contents local" id="contents" style="display: none"> | 13 <div class="contents local" id="contents" style="display: none"> |
6 <ul class="small-gap"> | 14 <ul class="small-gap"> |
7 <li><a class="reference internal" href="#introduction" id="id1">Introduction</a>
</li> | 15 <li><a class="reference internal" href="#introduction" id="id1">Introduction</a>
</li> |
8 <li><a class="reference internal" href="#reference-information" id="id2">Referen
ce information</a></li> | 16 <li><a class="reference internal" href="#reference-information" id="id2">Referen
ce information</a></li> |
9 <li><a class="reference internal" href="#background" id="id3">Background</a></li
> | 17 <li><a class="reference internal" href="#background" id="id3">Background</a></li
> |
10 <li><p class="first"><a class="reference internal" href="#the-url-loader-example
" id="id4">The <code>url_loader</code> example</a></p> | 18 <li><p class="first"><a class="reference internal" href="#the-url-loader-example
" id="id4">The <code>url_loader</code> example</a></p> |
11 <ul class="small-gap"> | 19 <ul class="small-gap"> |
12 <li><a class="reference internal" href="#url-loading-overview" id="id5">URL load
ing overview</a></li> | 20 <li><a class="reference internal" href="#url-loading-overview" id="id5">URL load
ing overview</a></li> |
13 </ul> | 21 </ul> |
14 </li> | 22 </li> |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 or there is an error (less than -1). <code>OnRead</code> is called in the event
of an | 220 or there is an error (less than -1). <code>OnRead</code> is called in the event
of an |
213 error or <code>PP_OK</code>.</p> | 221 error or <code>PP_OK</code>.</p> |
214 <h3 id="displaying-a-result">Displaying a result</h3> | 222 <h3 id="displaying-a-result">Displaying a result</h3> |
215 <p>OnRead calls <code>ReportResultAndDie</code> when either an error or <code>PP
_OK</code> is | 223 <p>OnRead calls <code>ReportResultAndDie</code> when either an error or <code>PP
_OK</code> is |
216 returned to indicate streaming of file is complete. <code>ReportResultAndDie</co
de> then | 224 returned to indicate streaming of file is complete. <code>ReportResultAndDie</co
de> then |
217 calls <code>ReportResult,</code> which calls <code>PostMessage</code> to send th
e result back to | 225 calls <code>ReportResult,</code> which calls <code>PostMessage</code> to send th
e result back to |
218 the HTML page.</p> | 226 the HTML page.</p> |
219 </section> | 227 </section> |
220 | 228 |
221 {{/partials.standard_nacl_article}} | 229 {{/partials.standard_nacl_article}} |
OLD | NEW |