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

Side by Side Diff: include/v8.h

Issue 2087823002: Optionally invoke an interceptor on failed access checks (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 5 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 4780 matching lines...) Expand 10 before | Expand all | Expand 10 after
4791 /** 4791 /**
4792 * Sets access check callback on the object template and enables access 4792 * Sets access check callback on the object template and enables access
4793 * checks. 4793 * checks.
4794 * 4794 *
4795 * When accessing properties on instances of this object template, 4795 * When accessing properties on instances of this object template,
4796 * the access check callback will be called to determine whether or 4796 * the access check callback will be called to determine whether or
4797 * not to allow cross-context access to the properties. 4797 * not to allow cross-context access to the properties.
4798 */ 4798 */
4799 void SetAccessCheckCallback(AccessCheckCallback callback, 4799 void SetAccessCheckCallback(AccessCheckCallback callback,
4800 Local<Value> data = Local<Value>()); 4800 Local<Value> data = Local<Value>());
4801
4802 /**
4803 * Like SetAccessCheckCallback but invokes an interceptor on failed access
4804 * checks instead of looking up all-can-read properties. You can only use
4805 * either this method or SetAccessCheckCallback, but not both at the same
4806 * time.
4807 */
4808 void SetAccessCheckCallbackAndHandler(
4809 AccessCheckCallback callback,
4810 const NamedPropertyHandlerConfiguration& named_handler,
4811 const IndexedPropertyHandlerConfiguration& indexed_handler,
4812 Local<Value> data = Local<Value>());
4813
4801 /** 4814 /**
4802 * Gets the number of internal fields for objects generated from 4815 * Gets the number of internal fields for objects generated from
4803 * this template. 4816 * this template.
4804 */ 4817 */
4805 int InternalFieldCount(); 4818 int InternalFieldCount();
4806 4819
4807 /** 4820 /**
4808 * Sets the number of internal fields for objects generated from 4821 * Sets the number of internal fields for objects generated from
4809 * this template. 4822 * this template.
4810 */ 4823 */
(...skipping 4064 matching lines...) Expand 10 before | Expand all | Expand 10 after
8875 */ 8888 */
8876 8889
8877 8890
8878 } // namespace v8 8891 } // namespace v8
8879 8892
8880 8893
8881 #undef TYPE_CHECK 8894 #undef TYPE_CHECK
8882 8895
8883 8896
8884 #endif // INCLUDE_V8_H_ 8897 #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