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

Side by Side Diff: src/inspector/v8-runtime-agent-impl.h

Issue 2700743002: [inspector] extend protocol for code coverage. (Closed)
Patch Set: fix Created 3 years, 10 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/js_protocol.json ('k') | src/inspector/v8-runtime-agent-impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 Response discardConsoleEntries() override; 90 Response discardConsoleEntries() override;
91 Response compileScript(const String16& expression, const String16& sourceURL, 91 Response compileScript(const String16& expression, const String16& sourceURL,
92 bool persistScript, Maybe<int> executionContextId, 92 bool persistScript, Maybe<int> executionContextId,
93 Maybe<String16>*, 93 Maybe<String16>*,
94 Maybe<protocol::Runtime::ExceptionDetails>*) override; 94 Maybe<protocol::Runtime::ExceptionDetails>*) override;
95 void runScript(const String16&, Maybe<int> executionContextId, 95 void runScript(const String16&, Maybe<int> executionContextId,
96 Maybe<String16> objectGroup, Maybe<bool> silent, 96 Maybe<String16> objectGroup, Maybe<bool> silent,
97 Maybe<bool> includeCommandLineAPI, Maybe<bool> returnByValue, 97 Maybe<bool> includeCommandLineAPI, Maybe<bool> returnByValue,
98 Maybe<bool> generatePreview, Maybe<bool> awaitPromise, 98 Maybe<bool> generatePreview, Maybe<bool> awaitPromise,
99 std::unique_ptr<RunScriptCallback>) override; 99 std::unique_ptr<RunScriptCallback>) override;
100 Response startPreciseCoverage() override;
101 Response stopPreciseCoverage() override;
102 Response takePreciseCoverage(
103 std::unique_ptr<protocol::Array<protocol::Runtime::ScriptCoverage>>*
104 out_result) override;
105 Response getBestEffortCoverage(
106 std::unique_ptr<protocol::Array<protocol::Runtime::ScriptCoverage>>*
107 out_result) override;
100 108
101 void reset(); 109 void reset();
102 void reportExecutionContextCreated(InspectedContext*); 110 void reportExecutionContextCreated(InspectedContext*);
103 void reportExecutionContextDestroyed(InspectedContext*); 111 void reportExecutionContextDestroyed(InspectedContext*);
104 void inspect(std::unique_ptr<protocol::Runtime::RemoteObject> objectToInspect, 112 void inspect(std::unique_ptr<protocol::Runtime::RemoteObject> objectToInspect,
105 std::unique_ptr<protocol::DictionaryValue> hints); 113 std::unique_ptr<protocol::DictionaryValue> hints);
106 void messageAdded(V8ConsoleMessage*); 114 void messageAdded(V8ConsoleMessage*);
107 bool enabled() const { return m_enabled; } 115 bool enabled() const { return m_enabled; }
108 116
109 private: 117 private:
110 bool reportMessage(V8ConsoleMessage*, bool generatePreview); 118 bool reportMessage(V8ConsoleMessage*, bool generatePreview);
111 119
112 V8InspectorSessionImpl* m_session; 120 V8InspectorSessionImpl* m_session;
113 protocol::DictionaryValue* m_state; 121 protocol::DictionaryValue* m_state;
114 protocol::Runtime::Frontend m_frontend; 122 protocol::Runtime::Frontend m_frontend;
115 V8InspectorImpl* m_inspector; 123 V8InspectorImpl* m_inspector;
116 bool m_enabled; 124 bool m_enabled;
117 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> 125 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>>
118 m_compiledScripts; 126 m_compiledScripts;
119 127
120 DISALLOW_COPY_AND_ASSIGN(V8RuntimeAgentImpl); 128 DISALLOW_COPY_AND_ASSIGN(V8RuntimeAgentImpl);
121 }; 129 };
122 130
123 } // namespace v8_inspector 131 } // namespace v8_inspector
124 132
125 #endif // V8_INSPECTOR_V8RUNTIMEAGENTIMPL_H_ 133 #endif // V8_INSPECTOR_V8RUNTIMEAGENTIMPL_H_
OLDNEW
« no previous file with comments | « src/inspector/js_protocol.json ('k') | src/inspector/v8-runtime-agent-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698