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

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

Issue 273683006: ScriptPromise should understand the ScriptState from which the ScriptPromise is generated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/ScriptPromiseTest.cpp ('k') | Source/bindings/v8/V8Binding.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Ericsson AB. All rights reserved. 3 * Copyright (C) 2012 Ericsson AB. 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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 } 920 }
921 921
922 private: 922 private:
923 v8::Isolate* m_isolate; 923 v8::Isolate* m_isolate;
924 }; 924 };
925 925
926 class V8ExecutionScope { 926 class V8ExecutionScope {
927 public: 927 public:
928 static PassOwnPtr<V8ExecutionScope> create(v8::Isolate*); 928 static PassOwnPtr<V8ExecutionScope> create(v8::Isolate*);
929 explicit V8ExecutionScope(v8::Isolate*); 929 explicit V8ExecutionScope(v8::Isolate*);
930 ScriptState* scriptState() const;
931 v8::Isolate* isolate() const;
930 ~V8ExecutionScope(); 932 ~V8ExecutionScope();
931 933
932 private: 934 private:
933 v8::HandleScope m_handleScope; 935 v8::HandleScope m_handleScope;
934 v8::Context::Scope m_contextScope; 936 v8::Context::Scope m_contextScope;
935 RefPtr<ScriptState> m_scriptState; 937 RefPtr<ScriptState> m_scriptState;
936 }; 938 };
937 939
938 } // namespace WebCore 940 } // namespace WebCore
939 941
940 #endif // V8Binding_h 942 #endif // V8Binding_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/ScriptPromiseTest.cpp ('k') | Source/bindings/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698