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

Unified Diff: chrome/browser/nacl_host/nacl_browser_delegate_impl.h

Issue 264923011: Add a whitelist check for nacl-nonsfi mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback, add a test Created 6 years, 7 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
Index: chrome/browser/nacl_host/nacl_browser_delegate_impl.h
diff --git a/chrome/browser/nacl_host/nacl_browser_delegate_impl.h b/chrome/browser/nacl_host/nacl_browser_delegate_impl.h
index 44b0754a4eba053a56dc8a4bb7b612c499cfa451..bd44ae06a53d587d4d7b0fa946baad33b6cc3ac0 100644
--- a/chrome/browser/nacl_host/nacl_browser_delegate_impl.h
+++ b/chrome/browser/nacl_host/nacl_browser_delegate_impl.h
@@ -31,11 +31,13 @@ class NaClBrowserDelegateImpl : public NaClBrowserDelegate {
virtual bool URLMatchesDebugPatterns(const GURL& manifest_url) OVERRIDE;
virtual content::BrowserPpapiHost::OnKeepaliveCallback
GetOnKeepaliveCallback() OVERRIDE;
+ virtual bool IsNonSfiModeAllowed(const GURL& manifest_url) OVERRIDE;
private:
scoped_refptr<extensions::InfoMap> extension_info_map_;
std::vector<URLPattern> debug_patterns_;
bool inverse_debug_patterns_;
+ std::set<std::string> allowed_nonsfi_origins_;
DISALLOW_COPY_AND_ASSIGN(NaClBrowserDelegateImpl);
};

Powered by Google App Engine
This is Rietveld 408576698