| OLD | NEW |
| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 Scope(V8InspectorImpl*, int contextGroupId); | 113 Scope(V8InspectorImpl*, int contextGroupId); |
| 114 virtual ~Scope(); | 114 virtual ~Scope(); |
| 115 virtual Response findInjectedScript(V8InspectorSessionImpl*) = 0; | 115 virtual Response findInjectedScript(V8InspectorSessionImpl*) = 0; |
| 116 | 116 |
| 117 V8InspectorImpl* m_inspector; | 117 V8InspectorImpl* m_inspector; |
| 118 int m_contextGroupId; | 118 int m_contextGroupId; |
| 119 InjectedScript* m_injectedScript; | 119 InjectedScript* m_injectedScript; |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 void cleanup(); | 122 void cleanup(); |
| 123 v8::DebugInterface::ExceptionBreakState setPauseOnExceptionsState( | 123 v8::debug::ExceptionBreakState setPauseOnExceptionsState( |
| 124 v8::DebugInterface::ExceptionBreakState); | 124 v8::debug::ExceptionBreakState); |
| 125 | 125 |
| 126 v8::HandleScope m_handleScope; | 126 v8::HandleScope m_handleScope; |
| 127 v8::TryCatch m_tryCatch; | 127 v8::TryCatch m_tryCatch; |
| 128 v8::Local<v8::Context> m_context; | 128 v8::Local<v8::Context> m_context; |
| 129 std::unique_ptr<V8Console::CommandLineAPIScope> m_commandLineAPIScope; | 129 std::unique_ptr<V8Console::CommandLineAPIScope> m_commandLineAPIScope; |
| 130 bool m_ignoreExceptionsAndMuteConsole; | 130 bool m_ignoreExceptionsAndMuteConsole; |
| 131 v8::DebugInterface::ExceptionBreakState m_previousPauseOnExceptionsState; | 131 v8::debug::ExceptionBreakState m_previousPauseOnExceptionsState; |
| 132 bool m_userGesture; | 132 bool m_userGesture; |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 class ContextScope : public Scope { | 135 class ContextScope : public Scope { |
| 136 public: | 136 public: |
| 137 ContextScope(V8InspectorImpl*, int contextGroupId, int executionContextId); | 137 ContextScope(V8InspectorImpl*, int contextGroupId, int executionContextId); |
| 138 ~ContextScope(); | 138 ~ContextScope(); |
| 139 | 139 |
| 140 private: | 140 private: |
| 141 Response findInjectedScript(V8InspectorSessionImpl*) override; | 141 Response findInjectedScript(V8InspectorSessionImpl*) override; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 v8::Global<v8::Value> m_lastEvaluationResult; | 190 v8::Global<v8::Value> m_lastEvaluationResult; |
| 191 std::unique_ptr<InjectedScriptNative> m_native; | 191 std::unique_ptr<InjectedScriptNative> m_native; |
| 192 v8::Global<v8::Object> m_commandLineAPI; | 192 v8::Global<v8::Object> m_commandLineAPI; |
| 193 | 193 |
| 194 DISALLOW_COPY_AND_ASSIGN(InjectedScript); | 194 DISALLOW_COPY_AND_ASSIGN(InjectedScript); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace v8_inspector | 197 } // namespace v8_inspector |
| 198 | 198 |
| 199 #endif // V8_INSPECTOR_INJECTEDSCRIPT_H_ | 199 #endif // V8_INSPECTOR_INJECTEDSCRIPT_H_ |
| OLD | NEW |