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

Unified Diff: ios/web/web_state/ui/crw_static_file_web_view.h

Issue 1043243003: Upstream most of ios/web/net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove accidentally-added clients Created 5 years, 9 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
« no previous file with comments | « ios/web/ui_web_view_util_unittest.mm ('k') | ios/web/web_state/ui/crw_static_file_web_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_static_file_web_view.h
diff --git a/ios/web/web_state/ui/crw_static_file_web_view.h b/ios/web/web_state/ui/crw_static_file_web_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b7e54d6c9798ad0b8524e2020142b2fb24ef0a0
--- /dev/null
+++ b/ios/web/web_state/ui/crw_static_file_web_view.h
@@ -0,0 +1,36 @@
+// Copyright 2012 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_WEB_STATE_UI_CRW_STATIC_FILE_WEB_VIEW_H_
+#define IOS_WEB_WEB_STATE_UI_CRW_STATIC_FILE_WEB_VIEW_H_
+
+#import <UIKit/UIKit.h>
+
+#import "ios/web/net/crw_request_tracker_delegate.h"
+
+namespace web {
+class BrowserState;
+}
+
+// A subclass of UIWebView that specializes in presenting static html file
+// content. Use this type of UIWebView that needs to display static HTML
+// content from application bundle.
+// TODO(shreyasv): Remove this class, since nobody is using it.
+@interface CRWStaticFileWebView : UIWebView<CRWRequestTrackerDelegate>
+
+// Creates a new UIWebView associated with the given |browserState|.
+// |browserState| may be nullptr.
+- (instancetype)initWithFrame:(CGRect)frame
+ browserState:(web::BrowserState*)browserState;
+
+// Returns whether the request should be allowed for rendering into a
+// special UIWebView that allows static file content.
+// TODO(marq): Since this is only used to inject a FileRequestVerfier into
+// HttpProtocolHandler, instead make this a method that returns a block of
+// that type.
++ (BOOL)isStaticFileRequest:(NSURLRequest*)request;
+
+@end
+
+#endif // IOS_WEB_WEB_STATE_UI_CRW_STATIC_FILE_WEB_VIEW_H_
« no previous file with comments | « ios/web/ui_web_view_util_unittest.mm ('k') | ios/web/web_state/ui/crw_static_file_web_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698