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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/external_tab_test.cc ('k') | chrome_frame/navigation_constraints.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_
6 #define CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_
7
8 #include <urlmon.h>
9 #include <windows.h>
10
11 #include "base/win/scoped_comptr.h"
12 #include "googleurl/src/gurl.h"
13
14 // Provides an interface which controls navigation within ChromeFrame.
15 class NavigationConstraints {
16 public:
17 virtual ~NavigationConstraints() {}
18 virtual bool AllowUnsafeUrls() = 0;
19 virtual bool IsSchemeAllowed(const GURL& url) = 0;
20 virtual bool IsZoneAllowed(const GURL& url) = 0;
21 };
22
23 // Provides default implementation for the NavigationConstraints interface.
24 class NavigationConstraintsImpl : public NavigationConstraints {
25 public:
26 virtual ~NavigationConstraintsImpl() {}
27
28 // NavigationConstraints method overrides.
29 virtual bool AllowUnsafeUrls();
30 virtual bool IsSchemeAllowed(const GURL& url);
31 virtual bool IsZoneAllowed(const GURL& url);
32 private:
33 base::win::ScopedComPtr<IInternetSecurityManager> security_manager_;
34 };
35
36 #endif // CHROME_FRAME_NAVIGATION_CONSTRAINTS_H_
37
OLDNEW
« 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