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 | |
8 | 7 |
9 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
10 #include "content/public/browser/web_ui.h" | 9 #include "content/public/browser/web_ui.h" |
11 | 10 |
12 class GURL; | 11 class GURL; |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 class BrowserContext; | 15 class BrowserContext; |
17 class WebContents; | 16 class WebContents; |
(...skipping 30 matching lines...) Expand all Loading... |
48 // URLs with WebUI types (as above) and also URLs that can be loaded by | 47 // URLs with WebUI types (as above) and also URLs that can be loaded by |
49 // normal tabs such as javascript: URLs or about:hang. | 48 // normal tabs such as javascript: URLs or about:hang. |
50 virtual bool IsURLAcceptableForWebUI(BrowserContext* browser_context, | 49 virtual bool IsURLAcceptableForWebUI(BrowserContext* browser_context, |
51 const GURL& url, | 50 const GURL& url, |
52 bool data_urls_allowed) const = 0; | 51 bool data_urls_allowed) const = 0; |
53 }; | 52 }; |
54 | 53 |
55 } // namespace content | 54 } // namespace content |
56 | 55 |
57 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_FACTORY_H_ | 56 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_CONTROLLER_FACTORY_H_ |
OLD | NEW |