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

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

Issue 1924713002: [DevTools] Removed InjectedScriptHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-inspect-to-native
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InspectedContext_h 5 #ifndef InspectedContext_h
6 #define InspectedContext_h 6 #define InspectedContext_h
7 7
8 #include "platform/inspector_protocol/Allocator.h" 8 #include "platform/inspector_protocol/Allocator.h"
9 #include "platform/inspector_protocol/Collections.h" 9 #include "platform/inspector_protocol/Collections.h"
10 #include "platform/inspector_protocol/String16.h" 10 #include "platform/inspector_protocol/String16.h"
(...skipping 19 matching lines...) Expand all
30 String16 humanReadableName() const { return m_humanReadableName; } 30 String16 humanReadableName() const { return m_humanReadableName; }
31 String16 frameId() const { return m_frameId; } 31 String16 frameId() const { return m_frameId; }
32 32
33 bool isReported() const { return m_reported; } 33 bool isReported() const { return m_reported; }
34 void setReported(bool reported) { m_reported = reported; } 34 void setReported(bool reported) { m_reported = reported; }
35 35
36 v8::Isolate* isolate() const; 36 v8::Isolate* isolate() const;
37 V8DebuggerImpl* debugger() const { return m_debugger; } 37 V8DebuggerImpl* debugger() const { return m_debugger; }
38 38
39 InjectedScript* getInjectedScript() { return m_injectedScript.get(); } 39 InjectedScript* getInjectedScript() { return m_injectedScript.get(); }
40 void createInjectedScript(InjectedScriptHost*); 40 void createInjectedScript();
41 void discardInjectedScript(); 41 void discardInjectedScript();
42 42
43 private: 43 private:
44 friend class V8DebuggerImpl; 44 friend class V8DebuggerImpl;
45 InspectedContext(V8DebuggerImpl*, const V8ContextInfo&, int contextId); 45 InspectedContext(V8DebuggerImpl*, const V8ContextInfo&, int contextId);
46 static void weakCallback(const v8::WeakCallbackInfo<InspectedContext>&); 46 static void weakCallback(const v8::WeakCallbackInfo<InspectedContext>&);
47 static void consoleWeakCallback(const v8::WeakCallbackInfo<InspectedContext> &); 47 static void consoleWeakCallback(const v8::WeakCallbackInfo<InspectedContext> &);
48 48
49 V8DebuggerImpl* m_debugger; 49 V8DebuggerImpl* m_debugger;
50 v8::Global<v8::Context> m_context; 50 v8::Global<v8::Context> m_context;
51 int m_contextId; 51 int m_contextId;
52 int m_contextGroupId; 52 int m_contextGroupId;
53 bool m_isDefault; 53 bool m_isDefault;
54 const String16 m_origin; 54 const String16 m_origin;
55 const String16 m_humanReadableName; 55 const String16 m_humanReadableName;
56 const String16 m_frameId; 56 const String16 m_frameId;
57 bool m_reported; 57 bool m_reported;
58 OwnPtr<InjectedScript> m_injectedScript; 58 OwnPtr<InjectedScript> m_injectedScript;
59 v8::Global<v8::Object> m_console; 59 v8::Global<v8::Object> m_console;
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif 64 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698