| 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 21 matching lines...) Expand all Loading... |
| 32 #define V8_INSPECTOR_INJECTEDSCRIPT_H_ | 32 #define V8_INSPECTOR_INJECTEDSCRIPT_H_ |
| 33 | 33 |
| 34 #include "src/inspector/Allocator.h" | 34 #include "src/inspector/Allocator.h" |
| 35 #include "src/inspector/InjectedScriptNative.h" | 35 #include "src/inspector/InjectedScriptNative.h" |
| 36 #include "src/inspector/InspectedContext.h" | 36 #include "src/inspector/InspectedContext.h" |
| 37 #include "src/inspector/V8Console.h" | 37 #include "src/inspector/V8Console.h" |
| 38 #include "src/inspector/V8Debugger.h" | 38 #include "src/inspector/V8Debugger.h" |
| 39 #include "src/inspector/protocol/Forward.h" | 39 #include "src/inspector/protocol/Forward.h" |
| 40 #include "src/inspector/protocol/Runtime.h" | 40 #include "src/inspector/protocol/Runtime.h" |
| 41 | 41 |
| 42 #include <v8.h> | 42 #include "include/v8.h" |
| 43 | 43 |
| 44 namespace v8_inspector { | 44 namespace v8_inspector { |
| 45 | 45 |
| 46 class RemoteObjectId; | 46 class RemoteObjectId; |
| 47 class V8FunctionCall; | 47 class V8FunctionCall; |
| 48 class V8InspectorImpl; | 48 class V8InspectorImpl; |
| 49 class V8InspectorSessionImpl; | 49 class V8InspectorSessionImpl; |
| 50 | 50 |
| 51 using protocol::ErrorString; | 51 using protocol::ErrorString; |
| 52 using protocol::Maybe; | 52 using protocol::Maybe; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 bool initialize(); | 111 bool initialize(); |
| 112 bool installCommandLineAPI(); | 112 bool installCommandLineAPI(); |
| 113 void ignoreExceptionsAndMuteConsole(); | 113 void ignoreExceptionsAndMuteConsole(); |
| 114 void pretendUserGesture(); | 114 void pretendUserGesture(); |
| 115 v8::Local<v8::Context> context() const { return m_context; } | 115 v8::Local<v8::Context> context() const { return m_context; } |
| 116 InjectedScript* injectedScript() const { return m_injectedScript; } | 116 InjectedScript* injectedScript() const { return m_injectedScript; } |
| 117 const v8::TryCatch& tryCatch() const { return m_tryCatch; } | 117 const v8::TryCatch& tryCatch() const { return m_tryCatch; } |
| 118 | 118 |
| 119 protected: | 119 protected: |
| 120 Scope(ErrorString*, V8InspectorImpl*, int contextGroupId); | 120 Scope(ErrorString*, V8InspectorImpl*, int contextGroupId); |
| 121 ~Scope(); | 121 virtual ~Scope(); |
| 122 virtual void findInjectedScript(V8InspectorSessionImpl*) = 0; | 122 virtual void findInjectedScript(V8InspectorSessionImpl*) = 0; |
| 123 | 123 |
| 124 ErrorString* m_errorString; | 124 ErrorString* m_errorString; |
| 125 V8InspectorImpl* m_inspector; | 125 V8InspectorImpl* m_inspector; |
| 126 int m_contextGroupId; | 126 int m_contextGroupId; |
| 127 InjectedScript* m_injectedScript; | 127 InjectedScript* m_injectedScript; |
| 128 | 128 |
| 129 private: | 129 private: |
| 130 void cleanup(); | 130 void cleanup(); |
| 131 V8Debugger::PauseOnExceptionsState setPauseOnExceptionsState( | 131 V8Debugger::PauseOnExceptionsState setPauseOnExceptionsState( |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 InspectedContext* m_context; | 198 InspectedContext* m_context; |
| 199 v8::Global<v8::Value> m_value; | 199 v8::Global<v8::Value> m_value; |
| 200 v8::Global<v8::Value> m_lastEvaluationResult; | 200 v8::Global<v8::Value> m_lastEvaluationResult; |
| 201 std::unique_ptr<InjectedScriptNative> m_native; | 201 std::unique_ptr<InjectedScriptNative> m_native; |
| 202 v8::Global<v8::Object> m_commandLineAPI; | 202 v8::Global<v8::Object> m_commandLineAPI; |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 } // namespace v8_inspector | 205 } // namespace v8_inspector |
| 206 | 206 |
| 207 #endif // V8_INSPECTOR_INJECTEDSCRIPT_H_ | 207 #endif // V8_INSPECTOR_INJECTEDSCRIPT_H_ |
| OLD | NEW |