OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FACTORY_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_FACTORY_H_ |
6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_FACTORY_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_FACTORY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/browser/webui/web_ui.h" | |
10 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/web_ui.h" |
11 | 11 |
12 class GURL; | 12 class GURL; |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 class BrowserContext; | 16 class BrowserContext; |
17 class WebContents; | 17 class WebContents; |
18 class WebUIController; | 18 class WebUIController; |
19 | 19 |
20 // Interface for an object which controls which URLs are considered WebUI URLs | 20 // Interface for an object which controls which URLs are considered WebUI URLs |
(...skipping 29 matching lines...) Expand all Loading... |
50 // normal tabs such as javascript: URLs or about:hang. | 50 // normal tabs such as javascript: URLs or about:hang. |
51 virtual bool IsURLAcceptableForWebUI(BrowserContext* browser_context, | 51 virtual bool IsURLAcceptableForWebUI(BrowserContext* browser_context, |
52 const GURL& url) const = 0; | 52 const GURL& url) const = 0; |
53 | 53 |
54 virtual ~WebUIFactory() {} | 54 virtual ~WebUIFactory() {} |
55 }; | 55 }; |
56 | 56 |
57 } // namespace content | 57 } // namespace content |
58 | 58 |
59 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_FACTORY_H_ | 59 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_FACTORY_H_ |
OLD | NEW |