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

Side by Side Diff: Source/bindings/v8/Dictionary.h

Issue 17063016: Remove leak of objects between isolated worlds on custom events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor rebase nits. Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 bool get(const String&, RefPtr<SpeechRecognitionResultList>&) const; 87 bool get(const String&, RefPtr<SpeechRecognitionResultList>&) const;
88 bool get(const String&, RefPtr<MediaStream>&) const; 88 bool get(const String&, RefPtr<MediaStream>&) const;
89 bool get(const String&, RefPtr<EventTarget>&) const; 89 bool get(const String&, RefPtr<EventTarget>&) const;
90 bool get(const String&, HashSet<AtomicString>&) const; 90 bool get(const String&, HashSet<AtomicString>&) const;
91 bool get(const String&, Dictionary&) const; 91 bool get(const String&, Dictionary&) const;
92 bool get(const String&, Vector<String>&) const; 92 bool get(const String&, Vector<String>&) const;
93 bool get(const String&, ArrayValue&) const; 93 bool get(const String&, ArrayValue&) const;
94 bool get(const String&, RefPtr<CSSFontFaceRule>&) const; 94 bool get(const String&, RefPtr<CSSFontFaceRule>&) const;
95 bool get(const String&, RefPtr<DOMError>&) const; 95 bool get(const String&, RefPtr<DOMError>&) const;
96 bool get(const String&, RefPtr<VoidCallback>&) const; 96 bool get(const String&, RefPtr<VoidCallback>&) const;
97 bool get(const String&, v8::Local<v8::Value>&) const;
97 98
98 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; 99 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const;
99 bool getOwnPropertyNames(Vector<String>&) const; 100 bool getOwnPropertyNames(Vector<String>&) const;
100 101
101 bool getWithUndefinedOrNullCheck(const String&, String&) const; 102 bool getWithUndefinedOrNullCheck(const String&, String&) const;
102 103
103 PassRefPtr<EventListener> getEventListener(const String&, Notification*) con st { return 0; } 104 PassRefPtr<EventListener> getEventListener(const String&, Notification*) con st { return 0; }
104 105
105 private: 106 private:
106 bool getKey(const String& key, v8::Local<v8::Value>&) const; 107 bool getKey(const String& key, v8::Local<v8::Value>&) const;
107 108
108 // This object can only be used safely when stack allocated because of v8::L ocal. 109 // This object can only be used safely when stack allocated because of v8::L ocal.
109 static void* operator new(size_t); 110 static void* operator new(size_t);
110 static void* operator new[](size_t); 111 static void* operator new[](size_t);
111 static void operator delete(void *); 112 static void operator delete(void *);
112 113
113 v8::Local<v8::Value> m_options; 114 v8::Local<v8::Value> m_options;
114 v8::Isolate* m_isolate; 115 v8::Isolate* m_isolate;
115 }; 116 };
116 117
117 } 118 }
118 119
119 #endif // Dictionary_h 120 #endif // Dictionary_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestEventConstructor.cpp ('k') | Source/bindings/v8/Dictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698