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

Side by Side Diff: content/public/browser/web_ui_controller_factory.h

Issue 10080018: Don't allow sending data URLs to WebUI, unless in a ChromeOS BalloonHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile errors and crash in tests. Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/browser/web_contents_delegate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_FACTORY_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_FACTORY_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_FACTORY_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_FACTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/web_ui.h" 10 #include "content/public/browser/web_ui.h"
(...skipping 30 matching lines...) Expand all
41 const GURL& url) const = 0; 41 const GURL& url) const = 0;
42 42
43 // Returns true for the subset of WebUIs that actually need WebUI bindings. 43 // Returns true for the subset of WebUIs that actually need WebUI bindings.
44 virtual bool UseWebUIBindingsForURL(BrowserContext* browser_context, 44 virtual bool UseWebUIBindingsForURL(BrowserContext* browser_context,
45 const GURL& url) const = 0; 45 const GURL& url) const = 0;
46 46
47 // Returns true if the given URL can be loaded by Web UI system. This allows 47 // Returns true if the given URL can be loaded by Web UI system. This allows
48 // URLs with WebUI types (as above) and also URLs that can be loaded by 48 // URLs with WebUI types (as above) and also URLs that can be loaded by
49 // normal tabs such as javascript: URLs or about:hang. 49 // normal tabs such as javascript: URLs or about:hang.
50 virtual bool IsURLAcceptableForWebUI(BrowserContext* browser_context, 50 virtual bool IsURLAcceptableForWebUI(BrowserContext* browser_context,
51 const GURL& url) const = 0; 51 const GURL& url,
52 bool data_urls_allowed) const = 0;
52 }; 53 };
53 54
54 } // namespace content 55 } // namespace content
55 56
56 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_FACTORY_H_ 57 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_FACTORY_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698