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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const WrapperTypeInfo* npObjectTypeInfo(); 51 const WrapperTypeInfo* npObjectTypeInfo();
52 52
53 // A V8NPObject is a NPObject which carries additional V8-specific information. 53 // A V8NPObject is a NPObject which carries additional V8-specific information.
54 // It is created with npCreateV8ScriptObject() and deallocated via the deallocat e 54 // It is created with npCreateV8ScriptObject() and deallocated via the deallocat e
55 // method in the same way as other NPObjects. 55 // method in the same way as other NPObjects.
56 struct V8NPObject { 56 struct V8NPObject {
57 WTF_MAKE_NONCOPYABLE(V8NPObject); 57 WTF_MAKE_NONCOPYABLE(V8NPObject);
58 public: 58 public:
59 NPObject object; 59 NPObject object;
60 v8::Persistent<v8::Object> v8Object; 60 v8::Persistent<v8::Object> v8Object;
61 RawPtrWillBeUntracedMember<LocalDOMWindow> rootObject; 61 UntracedMember<LocalDOMWindow> rootObject;
62 }; 62 };
63 63
64 struct PrivateIdentifier { 64 struct PrivateIdentifier {
65 union { 65 union {
66 const NPUTF8* string; 66 const NPUTF8* string;
67 int32_t number; 67 int32_t number;
68 } value; 68 } value;
69 bool isString; 69 bool isString;
70 }; 70 };
71 71
72 CORE_EXPORT NPObject* npCreateV8ScriptObject(v8::Isolate*, NPP, v8::Local<v8::Ob ject>, LocalDOMWindow*); 72 CORE_EXPORT NPObject* npCreateV8ScriptObject(v8::Isolate*, NPP, v8::Local<v8::Ob ject>, LocalDOMWindow*);
73 73
74 NPObject* v8ObjectToNPObject(v8::Local<v8::Object>); 74 NPObject* v8ObjectToNPObject(v8::Local<v8::Object>);
75 75
76 bool isWrappedNPObject(v8::Local<v8::Object>); 76 bool isWrappedNPObject(v8::Local<v8::Object>);
77 77
78 CORE_EXPORT V8NPObject* npObjectToV8NPObject(NPObject*); 78 CORE_EXPORT V8NPObject* npObjectToV8NPObject(NPObject*);
79 79
80 ScriptWrappable* npObjectToScriptWrappable(NPObject*); 80 ScriptWrappable* npObjectToScriptWrappable(NPObject*);
81 81
82 void disposeUnderlyingV8Object(v8::Isolate*, NPObject*); 82 void disposeUnderlyingV8Object(v8::Isolate*, NPObject*);
83 83
84 } // namespace blink 84 } // namespace blink
85 85
86 #endif // NPV8Object_h 86 #endif // NPV8Object_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698