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

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

Issue 6813070: Add cross-origin loading of NEXEs for MIME type handlers (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/plugin/ppapi/file_downloader.cc ('k') | src/trusted/plugin/ppapi/plugin_ppapi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/plugin/ppapi/plugin_ppapi.h
===================================================================
--- src/trusted/plugin/ppapi/plugin_ppapi.h (revision 4887)
+++ src/trusted/plugin/ppapi/plugin_ppapi.h (working copy)
@@ -91,6 +91,15 @@
// or NACL_NO_FILE_DESC. The caller must take ownership of the descriptor.
int32_t GetPOSIXFileDesc(const nacl::string& url);
+ // The MIME type used to instantiate this instance of the NaCl plugin.
+ // Typically, the MIME type will be application/x-nacl. However, if the NEXE
+ // is being used as a content type handler for another content type (such as
+ // PDF), then this function will return that type.
+ const nacl::string& mime_type() const { return mime_type_; }
+
+ // The default MIME type for the NaCl plugin.
+ static const char* const kNaClMIMEType;
+
private:
NACL_DISALLOW_COPY_AND_ASSIGN(PluginPpapi);
// Prevent construction and destruction from outside the class:
@@ -181,6 +190,8 @@
pp::Rect replayDidChangeViewPosition;
pp::Rect replayDidChangeViewClip;
+ nacl::string mime_type_;
+
// Keep track of the FileDownloaders created to fetch urls.
std::set<FileDownloader*> url_downloaders_;
// Keep track of file descriptors opened by StreamAsFile().
« no previous file with comments | « src/trusted/plugin/ppapi/file_downloader.cc ('k') | src/trusted/plugin/ppapi/plugin_ppapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698