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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8DOMWrapper.h

Issue 2439013002: Implement cross-origin attributes using access check interceptors. (Closed)
Patch Set: Address feedback and fix cross-origin location set Created 4 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 v8::Local<v8::Object> wrapper) WARN_UNUSED_RETURN; 66 v8::Local<v8::Object> wrapper) WARN_UNUSED_RETURN;
67 static v8::Local<v8::Object> associateObjectWithWrapper( 67 static v8::Local<v8::Object> associateObjectWithWrapper(
68 v8::Isolate*, 68 v8::Isolate*,
69 Node*, 69 Node*,
70 const WrapperTypeInfo*, 70 const WrapperTypeInfo*,
71 v8::Local<v8::Object> wrapper) WARN_UNUSED_RETURN; 71 v8::Local<v8::Object> wrapper) WARN_UNUSED_RETURN;
72 static void setNativeInfo(v8::Isolate*, 72 static void setNativeInfo(v8::Isolate*,
73 v8::Local<v8::Object>, 73 v8::Local<v8::Object>,
74 const WrapperTypeInfo*, 74 const WrapperTypeInfo*,
75 ScriptWrappable*); 75 ScriptWrappable*);
76 static void clearNativeInfo(v8::Isolate*, v8::Local<v8::Object>);
76 // hasInternalFieldsSet only checks if the value has the internal fields for 77 // hasInternalFieldsSet only checks if the value has the internal fields for
77 // wrapper obejct and type, and does not check if it's valid or not. The 78 // wrapper obejct and type, and does not check if it's valid or not. The
78 // value may not be a Blink's wrapper object. In order to make sure of it, 79 // value may not be a Blink's wrapper object. In order to make sure of it,
79 // Use isWrapper function instead. 80 // Use isWrapper function instead.
80 CORE_EXPORT static bool hasInternalFieldsSet(v8::Local<v8::Value>); 81 CORE_EXPORT static bool hasInternalFieldsSet(v8::Local<v8::Value>);
81 }; 82 };
82 83
83 inline void V8DOMWrapper::setNativeInfo(v8::Isolate* isolate, 84 inline void V8DOMWrapper::setNativeInfo(v8::Isolate* isolate,
84 v8::Local<v8::Object> wrapper, 85 v8::Local<v8::Object> wrapper,
85 const WrapperTypeInfo* wrapperTypeInfo, 86 const WrapperTypeInfo* wrapperTypeInfo,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 190
190 bool m_didEnterContext; 191 bool m_didEnterContext;
191 v8::Local<v8::Context> m_context; 192 v8::Local<v8::Context> m_context;
192 v8::TryCatch m_tryCatch; 193 v8::TryCatch m_tryCatch;
193 bool m_convertExceptions; 194 bool m_convertExceptions;
194 }; 195 };
195 196
196 } // namespace blink 197 } // namespace blink
197 198
198 #endif // V8DOMWrapper_h 199 #endif // V8DOMWrapper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698