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

Unified Diff: ios/web/webui/shared_resources_data_source_ios.h

Issue 1110213002: Upstream most of the iOS WebUI support in ios/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ios/web/webui/shared_resources_data_source_ios.h
diff --git a/ios/web/webui/shared_resources_data_source_ios.h b/ios/web/webui/shared_resources_data_source_ios.h
new file mode 100644
index 0000000000000000000000000000000000000000..92fa4fd217e8e685f86f7673aa643bb7009f56d2
--- /dev/null
+++ b/ios/web/webui/shared_resources_data_source_ios.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_WEBUI_SHARED_RESOURCES_DATA_SOURCE_IOS_H_
+#define IOS_WEB_WEBUI_SHARED_RESOURCES_DATA_SOURCE_IOS_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ios/web/public/url_data_source_ios.h"
+
+namespace web {
+
+// A DataSource for chrome://resources/ URLs.
+class SharedResourcesDataSourceIOS : public URLDataSourceIOS {
+ public:
+ SharedResourcesDataSourceIOS();
+
+ // web::URLDataSourceIOS implementation.
+ std::string GetSource() const override;
+ void StartDataRequest(
+ const std::string& path,
+ const URLDataSourceIOS::GotDataCallback& callback) override;
+ std::string GetMimeType(const std::string&) const override;
+
+ private:
+ ~SharedResourcesDataSourceIOS() override;
+
+ DISALLOW_COPY_AND_ASSIGN(SharedResourcesDataSourceIOS);
+};
+
+} // namespace web
+
+#endif // IOS_WEB_WEBUI_SHARED_RESOURCES_DATA_SOURCE_IOS_H_

Powered by Google App Engine
This is Rietveld 408576698