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

Side by Side Diff: ios/web/public/webui/web_ui_ios_controller_factory.h

Issue 2116673002: [ios] Moved WebUI provider code to ios/web. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 IOS_PUBLIC_PROVIDER_WEB_WEB_UI_IOS_CONTROLLER_FACTORY_H_ 5 #ifndef IOS_WEB_PUBLIC_WEBUI_WEB_UI_IOS_CONTROLLER_FACTORY_H_
6 #define IOS_PUBLIC_PROVIDER_WEB_WEB_UI_IOS_CONTROLLER_FACTORY_H_ 6 #define IOS_WEB_PUBLIC_WEBUI_WEB_UI_IOS_CONTROLLER_FACTORY_H_
7 7
8 #include "ios/public/provider/web/web_ui_ios.h" 8 #include "ios/web/public/webui/web_ui_ios.h"
9 9
10 class GURL; 10 class GURL;
11 11
12 namespace web { 12 namespace web {
13 13
14 class WebUIIOSController; 14 class WebUIIOSController;
15 15
16 // Interface for an object that controls which URLs are considered WebUIIOS 16 // Interface for an object that controls which URLs are considered WebUIIOS
17 // URLs and creates WebUIIOSController instances for given URLs. 17 // URLs and creates WebUIIOSController instances for given URLs.
18 class WebUIIOSControllerFactory { 18 class WebUIIOSControllerFactory {
19 public: 19 public:
20 virtual ~WebUIIOSControllerFactory() {} 20 virtual ~WebUIIOSControllerFactory() {}
21 21
22 // Call to register a factory. 22 // Call to register a factory.
23 static void RegisterFactory(WebUIIOSControllerFactory* factory); 23 static void RegisterFactory(WebUIIOSControllerFactory* factory);
24 24
25 // Returns a WebUIIOSController instance for the given URL, or NULL if the URL 25 // Returns a WebUIIOSController instance for the given URL, or NULL if the URL
26 // doesn't correspond to a WebUIIOS. 26 // doesn't correspond to a WebUIIOS.
27 virtual WebUIIOSController* CreateWebUIIOSControllerForURL( 27 virtual WebUIIOSController* CreateWebUIIOSControllerForURL(
28 WebUIIOS* web_ui, 28 WebUIIOS* web_ui,
29 const GURL& url) const = 0; 29 const GURL& url) const = 0;
30 }; 30 };
31 31
32 } // namespace web 32 } // namespace web
33 33
34 #endif // IOS_PUBLIC_PROVIDER_WEB_WEB_UI_IOS_CONTROLLER_FACTORY_H_ 34 #endif // IOS_WEB_PUBLIC_WEBUI_WEB_UI_IOS_CONTROLLER_FACTORY_H_
OLDNEW
« no previous file with comments | « ios/web/public/webui/web_ui_ios_controller.cc ('k') | ios/web/public/webui/web_ui_ios_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698