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

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

Issue 2205913002: [DevTools] Split a part of V8Inspector into V8Debugger. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-inspector-rename
Patch Set: context scope! Created 4 years, 4 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef InjectedScript_h 31 #ifndef InjectedScript_h
32 #define InjectedScript_h 32 #define InjectedScript_h
33 33
34 #include "platform/inspector_protocol/Allocator.h" 34 #include "platform/inspector_protocol/Allocator.h"
35 #include "platform/inspector_protocol/Platform.h" 35 #include "platform/inspector_protocol/Platform.h"
36 #include "platform/v8_inspector/InjectedScriptNative.h" 36 #include "platform/v8_inspector/InjectedScriptNative.h"
37 #include "platform/v8_inspector/InspectedContext.h" 37 #include "platform/v8_inspector/InspectedContext.h"
38 #include "platform/v8_inspector/V8Console.h" 38 #include "platform/v8_inspector/V8Console.h"
39 #include "platform/v8_inspector/V8InspectorImpl.h" 39 #include "platform/v8_inspector/V8Debugger.h"
40 #include "platform/v8_inspector/protocol/Runtime.h" 40 #include "platform/v8_inspector/protocol/Runtime.h"
41 41
42 #include <v8.h> 42 #include <v8.h>
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class RemoteObjectId; 46 class RemoteObjectId;
47 class V8FunctionCall; 47 class V8FunctionCall;
48 class V8InspectorImpl;
48 class V8InspectorSessionImpl; 49 class V8InspectorSessionImpl;
49 50
50 namespace protocol { 51 namespace protocol {
51 class DictionaryValue; 52 class DictionaryValue;
52 } 53 }
53 54
54 using protocol::Maybe; 55 using protocol::Maybe;
55 56
56 class InjectedScript final { 57 class InjectedScript final {
57 PROTOCOL_DISALLOW_COPY(InjectedScript); 58 PROTOCOL_DISALLOW_COPY(InjectedScript);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 ~Scope(); 104 ~Scope();
104 virtual void findInjectedScript(V8InspectorSessionImpl*) = 0; 105 virtual void findInjectedScript(V8InspectorSessionImpl*) = 0;
105 106
106 ErrorString* m_errorString; 107 ErrorString* m_errorString;
107 V8InspectorImpl* m_inspector; 108 V8InspectorImpl* m_inspector;
108 int m_contextGroupId; 109 int m_contextGroupId;
109 InjectedScript* m_injectedScript; 110 InjectedScript* m_injectedScript;
110 111
111 private: 112 private:
112 void cleanup(); 113 void cleanup();
113 V8InspectorImpl::PauseOnExceptionsState setPauseOnExceptionsState(V8Insp ectorImpl::PauseOnExceptionsState); 114 V8Debugger::PauseOnExceptionsState setPauseOnExceptionsState(V8Debugger: :PauseOnExceptionsState);
114 115
115 v8::HandleScope m_handleScope; 116 v8::HandleScope m_handleScope;
116 v8::TryCatch m_tryCatch; 117 v8::TryCatch m_tryCatch;
117 v8::Local<v8::Context> m_context; 118 v8::Local<v8::Context> m_context;
118 std::unique_ptr<V8Console::CommandLineAPIScope> m_commandLineAPIScope; 119 std::unique_ptr<V8Console::CommandLineAPIScope> m_commandLineAPIScope;
119 bool m_ignoreExceptionsAndMuteConsole; 120 bool m_ignoreExceptionsAndMuteConsole;
120 V8InspectorImpl::PauseOnExceptionsState m_previousPauseOnExceptionsState ; 121 V8Debugger::PauseOnExceptionsState m_previousPauseOnExceptionsState;
121 bool m_userGesture; 122 bool m_userGesture;
122 }; 123 };
123 124
124 class ContextScope: public Scope { 125 class ContextScope: public Scope {
125 PROTOCOL_DISALLOW_COPY(ContextScope); 126 PROTOCOL_DISALLOW_COPY(ContextScope);
126 public: 127 public:
127 ContextScope(ErrorString*, V8InspectorImpl*, int contextGroupId, int exe cutionContextId); 128 ContextScope(ErrorString*, V8InspectorImpl*, int contextGroupId, int exe cutionContextId);
128 ~ContextScope(); 129 ~ContextScope();
129 private: 130 private:
130 void findInjectedScript(V8InspectorSessionImpl*) override; 131 void findInjectedScript(V8InspectorSessionImpl*) override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 InspectedContext* m_context; 167 InspectedContext* m_context;
167 v8::Global<v8::Value> m_value; 168 v8::Global<v8::Value> m_value;
168 v8::Global<v8::Value> m_lastEvaluationResult; 169 v8::Global<v8::Value> m_lastEvaluationResult;
169 std::unique_ptr<InjectedScriptNative> m_native; 170 std::unique_ptr<InjectedScriptNative> m_native;
170 v8::Global<v8::Object> m_commandLineAPI; 171 v8::Global<v8::Object> m_commandLineAPI;
171 }; 172 };
172 173
173 } // namespace blink 174 } // namespace blink
174 175
175 #endif 176 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698