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

Side by Side Diff: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp

Issue 2896443003: Replace remaining ASSERT with DCHECK/_EQ as appropriate (Closed)
Patch Set: actually fix WorkerBackingthread Created 3 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 /* 1 /*
2 * Copyright (C) 2010-2011 Google Inc. All rights reserved. 2 * Copyright (C) 2010-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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 551 }
552 552
553 void WebDevToolsAgentImpl::FailedToRequestDevTools() { 553 void WebDevToolsAgentImpl::FailedToRequestDevTools() {
554 ClientMessageLoopAdapter::ResumeForCreateWindow(); 554 ClientMessageLoopAdapter::ResumeForCreateWindow();
555 } 555 }
556 556
557 void WebDevToolsAgentImpl::SendProtocolMessage(int session_id, 557 void WebDevToolsAgentImpl::SendProtocolMessage(int session_id,
558 int call_id, 558 int call_id,
559 const String& response, 559 const String& response,
560 const String& state) { 560 const String& state) {
561 ASSERT(Attached()); 561 DCHECK(Attached());
562 if (client_) 562 if (client_)
563 client_->SendProtocolMessage(session_id, call_id, response, state); 563 client_->SendProtocolMessage(session_id, call_id, response, state);
564 } 564 }
565 565
566 void WebDevToolsAgentImpl::PageLayoutInvalidated(bool resized) { 566 void WebDevToolsAgentImpl::PageLayoutInvalidated(bool resized) {
567 if (overlay_agent_) 567 if (overlay_agent_)
568 overlay_agent_->PageLayoutInvalidated(resized); 568 overlay_agent_->PageLayoutInvalidated(resized);
569 } 569 }
570 570
571 void WebDevToolsAgentImpl::WaitForCreateWindow(LocalFrame* frame) { 571 void WebDevToolsAgentImpl::WaitForCreateWindow(LocalFrame* frame) {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 } 648 }
649 649
650 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) { 650 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) {
651 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || 651 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" ||
652 method == "Debugger.setBreakpointByUrl" || 652 method == "Debugger.setBreakpointByUrl" ||
653 method == "Debugger.removeBreakpoint" || 653 method == "Debugger.removeBreakpoint" ||
654 method == "Debugger.setBreakpointsActive"; 654 method == "Debugger.setBreakpointsActive";
655 } 655 }
656 656
657 } // namespace blink 657 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/KURL.cpp ('k') | third_party/WebKit/Source/web/tests/sim/SimNetwork.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698