Add ICU message format support
[chromium-blink-merge.git] / ios / public / provider / web / web_ui_ios_controller_factory.h
blob1be15fa33a384c2685ea9440e435a4ae4b73016b
1 // Copyright 2014 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.
5 #ifndef IOS_PUBLIC_PROVIDER_WEB_WEB_UI_IOS_CONTROLLER_FACTORY_H_
6 #define IOS_PUBLIC_PROVIDER_WEB_WEB_UI_IOS_CONTROLLER_FACTORY_H_
8 #include "ios/public/provider/web/web_ui_ios.h"
10 class GURL;
12 namespace web {
14 class WebUIIOSController;
16 // Interface for an object that controls which URLs are considered WebUIIOS
17 // URLs and creates WebUIIOSController instances for given URLs.
18 class WebUIIOSControllerFactory {
19 public:
20 virtual ~WebUIIOSControllerFactory() {}
22 // Call to register a factory.
23 static void RegisterFactory(WebUIIOSControllerFactory* factory);
25 // Returns a WebUIIOSController instance for the given URL, or NULL if the URL
26 // doesn't correspond to a WebUIIOS.
27 virtual WebUIIOSController* CreateWebUIIOSControllerForURL(
28 WebUIIOS* web_ui,
29 const GURL& url) const = 0;
32 } // namespace web
34 #endif // IOS_PUBLIC_PROVIDER_WEB_WEB_UI_IOS_CONTROLLER_FACTORY_H_