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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp

Issue 2209603003: [DevTools] Remove V8InspectorSessionClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 /* 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 scope.injectedScript()->releaseObject(objectId); 461 scope.injectedScript()->releaseObject(objectId);
462 } 462 }
463 463
464 void V8RuntimeAgentImpl::releaseObjectGroup(ErrorString*, const String16& object Group) 464 void V8RuntimeAgentImpl::releaseObjectGroup(ErrorString*, const String16& object Group)
465 { 465 {
466 m_session->releaseObjectGroup(objectGroup); 466 m_session->releaseObjectGroup(objectGroup);
467 } 467 }
468 468
469 void V8RuntimeAgentImpl::run(ErrorString* errorString) 469 void V8RuntimeAgentImpl::run(ErrorString* errorString)
470 { 470 {
471 m_session->client()->resumeStartup(); 471 m_inspector->client()->resumeStartup(m_session->contextGroupId());
472 } 472 }
473 473
474 void V8RuntimeAgentImpl::setCustomObjectFormatterEnabled(ErrorString*, bool enab led) 474 void V8RuntimeAgentImpl::setCustomObjectFormatterEnabled(ErrorString*, bool enab led)
475 { 475 {
476 m_state->setBoolean(V8RuntimeAgentImplState::customObjectFormatterEnabled, e nabled); 476 m_state->setBoolean(V8RuntimeAgentImplState::customObjectFormatterEnabled, e nabled);
477 m_session->setCustomObjectFormatterEnabled(enabled); 477 m_session->setCustomObjectFormatterEnabled(enabled);
478 } 478 }
479 479
480 void V8RuntimeAgentImpl::discardConsoleEntries(ErrorString*) 480 void V8RuntimeAgentImpl::discardConsoleEntries(ErrorString*)
481 { 481 {
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 reportMessage(message, true); 676 reportMessage(message, true);
677 } 677 }
678 678
679 void V8RuntimeAgentImpl::reportMessage(V8ConsoleMessage* message, bool generateP review) 679 void V8RuntimeAgentImpl::reportMessage(V8ConsoleMessage* message, bool generateP review)
680 { 680 {
681 message->reportToFrontend(&m_frontend, m_session, generatePreview); 681 message->reportToFrontend(&m_frontend, m_session, generatePreview);
682 m_frontend.flush(); 682 m_frontend.flush();
683 } 683 }
684 684
685 } // namespace blink 685 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698