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

Unified Diff: chrome_frame/navigation_constraints.h

Issue 5698005: Add support for gcf:about:plugins in chrome frame full tab mode. The URL vali... (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/external_tab_test.cc ('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 0)
+++ chrome_frame/navigation_constraints.h (revision 0)
@@ -0,0 +1,37 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_
+#define CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_
+
+#include <urlmon.h>
+#include <windows.h>
+
+#include "base/win/scoped_comptr.h"
+#include "googleurl/src/gurl.h"
+
+// Provides an interface which controls navigation within ChromeFrame.
+class NavigationConstraints {
+ public:
+ virtual ~NavigationConstraints() {}
+ virtual bool AllowUnsafeUrls() = 0;
+ virtual bool IsSchemeAllowed(const GURL& url) = 0;
+ virtual bool IsZoneAllowed(const GURL& url) = 0;
+};
+
+// Provides default implementation for the NavigationConstraints interface.
+class NavigationConstraintsImpl : public NavigationConstraints {
+ public:
+ virtual ~NavigationConstraintsImpl() {}
+
+ // NavigationConstraints method overrides.
+ virtual bool AllowUnsafeUrls();
+ virtual bool IsSchemeAllowed(const GURL& url);
+ virtual bool IsZoneAllowed(const GURL& url);
+ private:
+ base::win::ScopedComPtr<IInternetSecurityManager> security_manager_;
+};
+
+#endif // CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_
+
Property changes on: chrome_frame\navigation_constraints.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome_frame/external_tab_test.cc ('k') | chrome_frame/navigation_constraints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698