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

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

Issue 295163005: Remove ScriptState::current() from IDBRequest (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
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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 916
917 virtual void clearInterrupt() OVERRIDE 917 virtual void clearInterrupt() OVERRIDE
918 { 918 {
919 m_isolate->ClearInterrupt(); 919 m_isolate->ClearInterrupt();
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 V8TestingScope {
927 public: 927 public:
928 static PassOwnPtr<V8ExecutionScope> create(v8::Isolate*); 928 static PassOwnPtr<V8TestingScope> create(v8::Isolate*);
929 explicit V8ExecutionScope(v8::Isolate*); 929 explicit V8TestingScope(v8::Isolate*);
930 ScriptState* scriptState() const; 930 ScriptState* scriptState() const;
931 v8::Isolate* isolate() const; 931 v8::Isolate* isolate() const;
932 ~V8ExecutionScope(); 932 ~V8TestingScope();
933 933
934 private: 934 private:
935 v8::HandleScope m_handleScope; 935 v8::HandleScope m_handleScope;
936 v8::Context::Scope m_contextScope; 936 v8::Context::Scope m_contextScope;
937 RefPtr<ScriptState> m_scriptState; 937 RefPtr<ScriptState> m_scriptState;
938 }; 938 };
939 939
940 void GetDevToolsFunctionInfo(v8::Handle<v8::Function>, v8::Isolate*, int& script Id, String& resourceName, int& lineNumber); 940 void GetDevToolsFunctionInfo(v8::Handle<v8::Function>, v8::Isolate*, int& script Id, String& resourceName, int& lineNumber);
941 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio nContext*, v8::Handle<v8::Function>, v8::Isolate*); 941 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio nContext*, v8::Handle<v8::Function>, v8::Isolate*);
942 942
943 943
944 } // namespace WebCore 944 } // namespace WebCore
945 945
946 #endif // V8Binding_h 946 #endif // V8Binding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698