Chromium Code Reviews| Index: ppapi/native_client/src/trusted/plugin/plugin.h |
| =================================================================== |
| --- ppapi/native_client/src/trusted/plugin/plugin.h (revision 115018) |
| +++ ppapi/native_client/src/trusted/plugin/plugin.h (working copy) |
| @@ -299,7 +299,9 @@ |
| // a PP_Error indicating status. On success an open file descriptor |
| // corresponding to the url body is recorded for further lookup. |
| // This is used by SRPC-based StreamAsFile(). |
|
jvoung - send to chromium...
2011/12/19 21:37:08
Perhaps add a comment about permits_extension_urls
sehr (please use chromium)
2011/12/20 01:48:38
Done.
|
| - bool StreamAsFile(const nacl::string& url, PP_CompletionCallback pp_callback); |
| + bool StreamAsFile(const nacl::string& url, |
| + bool permits_extension_urls, |
| + PP_CompletionCallback pp_callback); |
| // Returns an open POSIX file descriptor retrieved by StreamAsFile() |
| // or NACL_NO_FILE_DESC. The caller must take ownership of the descriptor. |
| int32_t GetPOSIXFileDesc(const nacl::string& url); |
| @@ -321,8 +323,6 @@ |
| const nacl::string& mime_type() const { return mime_type_; } |
| // The default MIME type for the NaCl plugin. |
| static const char* const kNaClMIMEType; |
| - // Tests if the MIME type is not a NaCl MIME type. |
| - bool IsForeignMIMEType() const; |
| // Returns true if PPAPI Dev interfaces should be allowed. |
| bool enable_dev_interfaces() { return enable_dev_interfaces_; } |
| @@ -453,6 +453,10 @@ |
| // Determines the appropriate nexe for the sandbox and requests a load. |
| void RequestNexeLoad(); |
| + // This NEXE is being used as a content type handler rather than directly by |
| + // an HTML document. |
| + bool NexeIsContentHandler() const; |
| + |
| // Callback used when loading a URL for SRPC-based StreamAsFile(). |
| void UrlDidOpenForStreamAsFile(int32_t pp_error, |
| FileDownloader*& url_downloader, |