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

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

Issue 1048613002: Upstream ios/web/web_state/ui support classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: ios/web/web_state/ui/crw_wk_web_view_crash_detector.h
diff --git a/ios/web/web_state/ui/crw_wk_web_view_crash_detector.h b/ios/web/web_state/ui/crw_wk_web_view_crash_detector.h
new file mode 100644
index 0000000000000000000000000000000000000000..6db04fbffd7aa270e1628dc63e9f6f6b15cd84d1
--- /dev/null
+++ b/ios/web/web_state/ui/crw_wk_web_view_crash_detector.h
@@ -0,0 +1,21 @@
+// 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_WEB_STATE_UI_CRW_WK_WEB_VIEW_CRASH_DETECTOR_H_
+#define IOS_WEB_WEB_STATE_UI_CRW_WK_WEB_VIEW_CRASH_DETECTOR_H_
+
+#import <WebKit/WebKit.h>
+
+#import "base/ios/block_types.h"
+
+// A watchdog which detects and reports WKWebView crashes.
+@interface CRWWKWebViewCrashDetector : NSObject
+
+// Designated initializer. |handler| will be called if |webView| has crashed.
+- (instancetype)initWithWebView:(WKWebView*)webView
+ crashHandler:(ProceduralBlock)handler;
+
+@end
+
+#endif // IOS_WEB_WEB_STATE_UI_CRW_WK_WEB_VIEW_CRASH_DETECTOR_H_

Powered by Google App Engine
This is Rietveld 408576698