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

Unified Diff: chrome_frame/navigation_constraints.h

Issue 5814004: Fixing a regression introduced with r69101, which now prevents Chrome Frame... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | « chrome_frame/chrome_frame_plugin.h ('k') | chrome_frame/navigation_constraints.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/navigation_constraints.h
===================================================================
--- chrome_frame/navigation_constraints.h (revision 69128)
+++ chrome_frame/navigation_constraints.h (working copy)
@@ -23,15 +23,27 @@
// Provides default implementation for the NavigationConstraints interface.
class NavigationConstraintsImpl : public NavigationConstraints {
public:
+ NavigationConstraintsImpl();
virtual ~NavigationConstraintsImpl() {}
// NavigationConstraints method overrides.
virtual bool AllowUnsafeUrls();
virtual bool IsSchemeAllowed(const GURL& url);
virtual bool IsZoneAllowed(const GURL& url);
+
+ bool is_privileged() const;
+ void set_is_privileged(bool is_privileged);
+
private:
base::win::ScopedComPtr<IInternetSecurityManager> security_manager_;
+
+ // The plugin is privileged if it is:
+ // * Invoked by a window running under the system principal in FireFox.
+ // * Being hosted by a custom host exposing the SID_ChromeFramePrivileged
+ // service.
+ //
+ // When privileged, additional interfaces are made available to the user.
+ bool is_privileged_;
};
#endif // CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_
-
« no previous file with comments | « chrome_frame/chrome_frame_plugin.h ('k') | chrome_frame/navigation_constraints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698