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

Side by Side Diff: include/v8.h

Issue 1653423002: Add the data parameter back to the access check callback (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 4307 matching lines...) Expand 10 before | Expand all | Expand 10 after
4318 ACCESS_DELETE, 4318 ACCESS_DELETE,
4319 ACCESS_KEYS 4319 ACCESS_KEYS
4320 }; 4320 };
4321 4321
4322 4322
4323 /** 4323 /**
4324 * Returns true if the given context should be allowed to access the given 4324 * Returns true if the given context should be allowed to access the given
4325 * object. 4325 * object.
4326 */ 4326 */
4327 typedef bool (*AccessCheckCallback)(Local<Context> accessing_context, 4327 typedef bool (*AccessCheckCallback)(Local<Context> accessing_context,
4328 Local<Object> accessed_object); 4328 Local<Object> accessed_object,
4329 4329 Local<Value> data);
4330 typedef bool (*DeprecatedAccessCheckCallback)(Local<Context> accessing_context,
4331 Local<Object> accessed_object);
4330 4332
4331 /** 4333 /**
4332 * Returns true if cross-context access should be allowed to the named 4334 * Returns true if cross-context access should be allowed to the named
4333 * property with the given key on the host object. 4335 * property with the given key on the host object.
4334 */ 4336 */
4335 typedef bool (*NamedSecurityCallback)(Local<Object> host, 4337 typedef bool (*NamedSecurityCallback)(Local<Object> host,
4336 Local<Value> key, 4338 Local<Value> key,
4337 AccessType type, 4339 AccessType type,
4338 Local<Value> data); 4340 Local<Value> data);
4339 4341
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
4749 /** 4751 /**
4750 * Sets access check callback on the object template and enables access 4752 * Sets access check callback on the object template and enables access
4751 * checks. 4753 * checks.
4752 * 4754 *
4753 * When accessing properties on instances of this object template, 4755 * When accessing properties on instances of this object template,
4754 * the access check callback will be called to determine whether or 4756 * the access check callback will be called to determine whether or
4755 * not to allow cross-context access to the properties. 4757 * not to allow cross-context access to the properties.
4756 */ 4758 */
4757 void SetAccessCheckCallback(AccessCheckCallback callback, 4759 void SetAccessCheckCallback(AccessCheckCallback callback,
4758 Local<Value> data = Local<Value>()); 4760 Local<Value> data = Local<Value>());
4761 V8_DEPRECATE_SOON(
4762 "Use SetAccessCheckCallback with new AccessCheckCallback signature.",
4763 void SetAccessCheckCallback(DeprecatedAccessCheckCallback callback,
4764 Local<Value> data = Local<Value>()));
4759 4765
4760 V8_DEPRECATED( 4766 V8_DEPRECATED(
4761 "Use SetAccessCheckCallback instead", 4767 "Use SetAccessCheckCallback instead",
4762 void SetAccessCheckCallbacks(NamedSecurityCallback named_handler, 4768 void SetAccessCheckCallbacks(NamedSecurityCallback named_handler,
4763 IndexedSecurityCallback indexed_handler, 4769 IndexedSecurityCallback indexed_handler,
4764 Local<Value> data = Local<Value>())); 4770 Local<Value> data = Local<Value>()));
4765 4771
4766 /** 4772 /**
4767 * Gets the number of internal fields for objects generated from 4773 * Gets the number of internal fields for objects generated from
4768 * this template. 4774 * this template.
(...skipping 3759 matching lines...) Expand 10 before | Expand all | Expand 10 after
8528 */ 8534 */
8529 8535
8530 8536
8531 } // namespace v8 8537 } // namespace v8
8532 8538
8533 8539
8534 #undef TYPE_CHECK 8540 #undef TYPE_CHECK
8535 8541
8536 8542
8537 #endif // INCLUDE_V8_H_ 8543 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698