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

Unified Diff: ppapi/native_client/src/trusted/plugin/plugin.h

Issue 8974020: Change pnacl to read all resources from the extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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 side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698