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

Side by Side Diff: src/inspector/InspectedContext.h

Issue 2338413003: [inspector] change implementation file extension from cpp to cc (Closed)
Patch Set: string16 -> string-16 Created 4 years, 3 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
« no previous file with comments | « src/inspector/InjectedScriptSource.js ('k') | src/inspector/InspectedContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_INSPECTOR_INSPECTEDCONTEXT_H_
6 #define V8_INSPECTOR_INSPECTEDCONTEXT_H_
7
8 #include "src/base/macros.h"
9 #include "src/inspector/String16.h"
10
11 #include "include/v8.h"
12
13 namespace v8_inspector {
14
15 class InjectedScript;
16 class InjectedScriptHost;
17 class V8ContextInfo;
18 class V8InspectorImpl;
19
20 class InspectedContext {
21 DISALLOW_COPY_AND_ASSIGN(InspectedContext);
22
23 public:
24 ~InspectedContext();
25
26 v8::Local<v8::Context> context() const;
27 int contextId() const { return m_contextId; }
28 int contextGroupId() const { return m_contextGroupId; }
29 String16 origin() const { return m_origin; }
30 String16 humanReadableName() const { return m_humanReadableName; }
31 String16 auxData() const { return m_auxData; }
32
33 bool isReported() const { return m_reported; }
34 void setReported(bool reported) { m_reported = reported; }
35
36 v8::Isolate* isolate() const;
37 V8InspectorImpl* inspector() const { return m_inspector; }
38
39 InjectedScript* getInjectedScript() { return m_injectedScript.get(); }
40 void createInjectedScript();
41 void discardInjectedScript();
42
43 private:
44 friend class V8InspectorImpl;
45 InspectedContext(V8InspectorImpl*, const V8ContextInfo&, int contextId);
46 static void weakCallback(const v8::WeakCallbackInfo<InspectedContext>&);
47 static void consoleWeakCallback(
48 const v8::WeakCallbackInfo<InspectedContext>&);
49
50 V8InspectorImpl* m_inspector;
51 v8::Global<v8::Context> m_context;
52 int m_contextId;
53 int m_contextGroupId;
54 const String16 m_origin;
55 const String16 m_humanReadableName;
56 const String16 m_auxData;
57 bool m_reported;
58 std::unique_ptr<InjectedScript> m_injectedScript;
59 v8::Global<v8::Object> m_console;
60 };
61
62 } // namespace v8_inspector
63
64 #endif // V8_INSPECTOR_INSPECTEDCONTEXT_H_
OLDNEW
« no previous file with comments | « src/inspector/InjectedScriptSource.js ('k') | src/inspector/InspectedContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698