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

Side by Side Diff: src/inspector/v8-inspector-session-impl.cc

Issue 2473563002: [inspector] migrate Schema, Console, Profiler to new style (Closed)
Patch Set: Created 4 years, 1 month 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/v8-console-agent-impl.cc ('k') | src/inspector/v8-profiler-agent-impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 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 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 #include "src/inspector/v8-inspector-session-impl.h" 5 #include "src/inspector/v8-inspector-session-impl.h"
6 6
7 #include "src/inspector/injected-script.h" 7 #include "src/inspector/injected-script.h"
8 #include "src/inspector/inspected-context.h" 8 #include "src/inspector/inspected-context.h"
9 #include "src/inspector/protocol/Protocol.h" 9 #include "src/inspector/protocol/Protocol.h"
10 #include "src/inspector/remote-object-id.h" 10 #include "src/inspector/remote-object-id.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 m_runtimeAgent->restore(); 98 m_runtimeAgent->restore();
99 m_debuggerAgent->restore(); 99 m_debuggerAgent->restore();
100 m_heapProfilerAgent->restore(); 100 m_heapProfilerAgent->restore();
101 m_profilerAgent->restore(); 101 m_profilerAgent->restore();
102 m_consoleAgent->restore(); 102 m_consoleAgent->restore();
103 } 103 }
104 } 104 }
105 105
106 V8InspectorSessionImpl::~V8InspectorSessionImpl() { 106 V8InspectorSessionImpl::~V8InspectorSessionImpl() {
107 ErrorString errorString; 107 ErrorString errorString;
108 m_consoleAgent->disable(&errorString); 108 m_consoleAgent->disable();
109 m_profilerAgent->disable(&errorString); 109 m_profilerAgent->disable();
110 m_heapProfilerAgent->disable(&errorString); 110 m_heapProfilerAgent->disable(&errorString);
111 m_debuggerAgent->disable(&errorString); 111 m_debuggerAgent->disable(&errorString);
112 m_runtimeAgent->disable(&errorString); 112 m_runtimeAgent->disable(&errorString);
113 113
114 discardInjectedScripts(); 114 discardInjectedScripts();
115 m_inspector->disconnect(this); 115 m_inspector->disconnect(this);
116 } 116 }
117 117
118 protocol::DictionaryValue* V8InspectorSessionImpl::agentState( 118 protocol::DictionaryValue* V8InspectorSessionImpl::agentState(
119 const String16& name) { 119 const String16& name) {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> matches = 408 std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> matches =
409 searchInTextByLinesImpl(this, toString16(text), toString16(query), 409 searchInTextByLinesImpl(this, toString16(text), toString16(query),
410 caseSensitive, isRegex); 410 caseSensitive, isRegex);
411 std::vector<std::unique_ptr<protocol::Debugger::API::SearchMatch>> result; 411 std::vector<std::unique_ptr<protocol::Debugger::API::SearchMatch>> result;
412 for (size_t i = 0; i < matches.size(); ++i) 412 for (size_t i = 0; i < matches.size(); ++i)
413 result.push_back(std::move(matches[i])); 413 result.push_back(std::move(matches[i]));
414 return result; 414 return result;
415 } 415 }
416 416
417 } // namespace v8_inspector 417 } // namespace v8_inspector
OLDNEW
« no previous file with comments | « src/inspector/v8-console-agent-impl.cc ('k') | src/inspector/v8-profiler-agent-impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698