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_WEB_WEBUI_SHARED_RESOURCES_DATA_SOURCE_IOS_H_
6 #define IOS_WEB_WEBUI_SHARED_RESOURCES_DATA_SOURCE_IOS_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ios/web/public/url_data_source_ios.h"
14 // A DataSource for chrome://resources/ URLs.
15 class SharedResourcesDataSourceIOS
: public URLDataSourceIOS
{
17 SharedResourcesDataSourceIOS();
19 // web::URLDataSourceIOS implementation.
20 std::string
GetSource() const override
;
21 void StartDataRequest(
22 const std::string
& path
,
23 const URLDataSourceIOS::GotDataCallback
& callback
) override
;
24 std::string
GetMimeType(const std::string
&) const override
;
27 ~SharedResourcesDataSourceIOS() override
;
29 DISALLOW_COPY_AND_ASSIGN(SharedResourcesDataSourceIOS
);
34 #endif // IOS_WEB_WEBUI_SHARED_RESOURCES_DATA_SOURCE_IOS_H_