blob: cc28dc8c6ba6394a2a0c813512286c0b418b6dde [file] [log] [blame]
// 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.
// TODO(crbug.com/595761): Remove this completion handler.
typedef void (^JavaScriptCompletion)(NSString*, NSError*);
// The type of the completion handler block that is called to inform about
// JavaScript evaluation completion.
typedef void (^JavaScriptResultBlock)(id, NSError*);
} // namespace
#endif // IOS_WEB_PUBLIC_BLOCK_TYPES_H_