OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |