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

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
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/manifest.h ('k') | ppapi/native_client/src/trusted/plugin/plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/trusted/plugin/plugin.h
===================================================================
--- ppapi/native_client/src/trusted/plugin/plugin.h (revision 115141)
+++ ppapi/native_client/src/trusted/plugin/plugin.h (working copy)
@@ -298,8 +298,13 @@
// Requests a URL asynchronously resulting in a call to pp_callback with
// 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().
- bool StreamAsFile(const nacl::string& url, PP_CompletionCallback pp_callback);
+ // permits_extension_urls determines whether a call to stream as file
+ // should be allowed to load URLs that are outside of the origin of the
+ // plugin. This is used by, e.g., the pnacl coordinator, which loads
+ // llc, ld, and various object files from a chrome extension URL.
+ 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 +326,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 +456,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,
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/manifest.h ('k') | ppapi/native_client/src/trusted/plugin/plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698