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

Side by Side Diff: ios/web/public/web_ui_ios_data_source.h

Issue 2544293002: ios: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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_WEB_PUBLIC_WEB_UI_IOS_DATA_SOURCE_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_UI_IOS_DATA_SOURCE_H_
6 #define IOS_WEB_PUBLIC_WEB_UI_IOS_DATA_SOURCE_H_ 6 #define IOS_WEB_PUBLIC_WEB_UI_IOS_DATA_SOURCE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
11 11
12 namespace base {
13 class DictionaryValue;
14 class RefCountedMemory;
15 }
16
17 namespace web { 12 namespace web {
18 class BrowserState; 13 class BrowserState;
19 14
20 // A data source that can help with implementing the common operations needed by 15 // A data source that can help with implementing the common operations needed by
21 // WebUIIOS pages. 16 // WebUIIOS pages.
22 class WebUIIOSDataSource : public base::SupportsUserData { 17 class WebUIIOSDataSource : public base::SupportsUserData {
23 public: 18 public:
24 ~WebUIIOSDataSource() override {} 19 ~WebUIIOSDataSource() override {}
25 20
26 static WebUIIOSDataSource* Create(const std::string& source_name); 21 static WebUIIOSDataSource* Create(const std::string& source_name);
(...skipping 24 matching lines...) Expand all
51 // Sets the resource to returned when no other paths match. 46 // Sets the resource to returned when no other paths match.
52 virtual void SetDefaultResource(int resource_id) = 0; 47 virtual void SetDefaultResource(int resource_id) = 0;
53 48
54 // The following map to methods on URLDataSource. See the documentation there. 49 // The following map to methods on URLDataSource. See the documentation there.
55 virtual void DisableDenyXFrameOptions() = 0; 50 virtual void DisableDenyXFrameOptions() = 0;
56 }; 51 };
57 52
58 } // namespace web 53 } // namespace web
59 54
60 #endif // IOS_WEB_PUBLIC_WEB_UI_IOS_DATA_SOURCE_H_ 55 #endif // IOS_WEB_PUBLIC_WEB_UI_IOS_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « ios/web/public/web_state/web_state_delegate.h ('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