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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScript.h

Issue 1769273004: Remove V8RecrusionScope, cleanup call sites. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 23 matching lines...) Expand all
34 #include "platform/inspector_protocol/TypeBuilder.h" 34 #include "platform/inspector_protocol/TypeBuilder.h"
35 #include "platform/v8_inspector/InjectedScriptManager.h" 35 #include "platform/v8_inspector/InjectedScriptManager.h"
36 #include "platform/v8_inspector/InjectedScriptNative.h" 36 #include "platform/v8_inspector/InjectedScriptNative.h"
37 #include <v8.h> 37 #include <v8.h>
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class InjectedScriptManager; 41 class InjectedScriptManager;
42 class RemoteObjectId; 42 class RemoteObjectId;
43 class V8FunctionCall; 43 class V8FunctionCall;
44 class V8DebuggerClient;
45 44
46 namespace protocol { 45 namespace protocol {
47 class DictionaryValue; 46 class DictionaryValue;
48 } 47 }
49 48
50 typedef String ErrorString; 49 typedef String ErrorString;
51 50
52 using protocol::Maybe; 51 using protocol::Maybe;
53 52
54 class InjectedScript final { 53 class InjectedScript final {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 int contextId() { return m_contextId; } 108 int contextId() { return m_contextId; }
110 String origin() const { return m_origin; } 109 String origin() const { return m_origin; }
111 void setOrigin(const String& origin) { m_origin = origin; } 110 void setOrigin(const String& origin) { m_origin = origin; }
112 111
113 v8::Isolate* isolate() { return m_isolate; } 112 v8::Isolate* isolate() { return m_isolate; }
114 v8::Local<v8::Context> context() const; 113 v8::Local<v8::Context> context() const;
115 void dispose(); 114 void dispose();
116 115
117 private: 116 private:
118 friend InjectedScript* InjectedScriptManager::injectedScriptFor(v8::Local<v8 ::Context>); 117 friend InjectedScript* InjectedScriptManager::injectedScriptFor(v8::Local<v8 ::Context>);
119 InjectedScript(InjectedScriptManager*, v8::Local<v8::Context>, v8::Local<v8: :Object>, V8DebuggerClient*, PassOwnPtr<InjectedScriptNative>, int contextId); 118 InjectedScript(InjectedScriptManager*, v8::Local<v8::Context>, v8::Local<v8: :Object>, PassOwnPtr<InjectedScriptNative>, int contextId);
120 119
121 bool canAccessInspectedWindow() const; 120 bool canAccessInspectedWindow() const;
122 v8::Local<v8::Value> v8Value() const; 121 v8::Local<v8::Value> v8Value() const;
123 v8::Local<v8::Value> callFunctionWithEvalEnabled(V8FunctionCall&, bool& hadE xception) const; 122 v8::Local<v8::Value> callFunctionWithEvalEnabled(V8FunctionCall&, bool& hadE xception) const;
124 PassOwnPtr<protocol::Value> makeCall(V8FunctionCall&); 123 PassOwnPtr<protocol::Value> makeCall(V8FunctionCall&);
125 PassOwnPtr<protocol::Runtime::RemoteObject> makeEvalCall(ErrorString*, V8Fun ctionCall&, Maybe<bool>* wasThrown, Maybe<protocol::Runtime::ExceptionDetails>* = 0); 124 PassOwnPtr<protocol::Runtime::RemoteObject> makeEvalCall(ErrorString*, V8Fun ctionCall&, Maybe<bool>* wasThrown, Maybe<protocol::Runtime::ExceptionDetails>* = 0);
126 PassOwnPtr<protocol::Value> makeCallWithExceptionDetails(V8FunctionCall&, Ma ybe<protocol::Runtime::ExceptionDetails>*); 125 PassOwnPtr<protocol::Value> makeCallWithExceptionDetails(V8FunctionCall&, Ma ybe<protocol::Runtime::ExceptionDetails>*);
127 126
128 InjectedScriptManager* m_manager; 127 InjectedScriptManager* m_manager;
129 v8::Isolate* m_isolate; 128 v8::Isolate* m_isolate;
130 v8::Global<v8::Context> m_context; 129 v8::Global<v8::Context> m_context;
131 v8::Global<v8::Value> m_value; 130 v8::Global<v8::Value> m_value;
132 V8DebuggerClient* m_client;
133 OwnPtr<InjectedScriptNative> m_native; 131 OwnPtr<InjectedScriptNative> m_native;
134 int m_contextId; 132 int m_contextId;
135 String m_origin; 133 String m_origin;
136 }; 134 };
137 135
138 } // namespace blink 136 } // namespace blink
139 137
140 #endif 138 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698