| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |