Index: ios/web/public/block_types.h |
diff --git a/ios/web/public/block_types.h b/ios/web/public/block_types.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8074dc04e69856c886dd9480cf46f2cb011a4062 |
--- /dev/null |
+++ b/ios/web/public/block_types.h |
@@ -0,0 +1,18 @@ |
+// Copyright 2015 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_PUBLIC_BLOCK_TYPES_H_ |
+#define IOS_WEB_PUBLIC_BLOCK_TYPES_H_ |
+ |
+#import <Foundation/Foundation.h> |
+ |
+namespace web { |
+ |
+// The type of the completion handler block that is called to inform about |
+// JavaScript evaluation completion. |
+typedef void (^JavaScriptCompletion)(NSString*, NSError*); |
+ |
+} // namespace |
+ |
+#endif // IOS_WEB_PUBLIC_BLOCK_TYPES_H_ |