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

Side by Side Diff: Source/WebCore/inspector/PageDebuggerAgent.cpp

Issue 11876015: Merge 139416 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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 | « Source/WebCore/inspector/PageDebuggerAgent.h ('k') | no next file » | 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 : InspectorDebuggerAgent(instrumentingAgents, inspectorState, injectedScript Manager) 52 : InspectorDebuggerAgent(instrumentingAgents, inspectorState, injectedScript Manager)
53 , m_pageAgent(pageAgent) 53 , m_pageAgent(pageAgent)
54 , m_overlay(overlay) 54 , m_overlay(overlay)
55 { 55 {
56 } 56 }
57 57
58 PageDebuggerAgent::~PageDebuggerAgent() 58 PageDebuggerAgent::~PageDebuggerAgent()
59 { 59 {
60 } 60 }
61 61
62 void PageDebuggerAgent::enable(ErrorString* errorString) 62 void PageDebuggerAgent::enable()
63 { 63 {
64 InspectorDebuggerAgent::enable(errorString); 64 InspectorDebuggerAgent::enable();
65 m_instrumentingAgents->setPageDebuggerAgent(this); 65 m_instrumentingAgents->setPageDebuggerAgent(this);
66 } 66 }
67 67
68 void PageDebuggerAgent::disable(ErrorString* errorString) 68 void PageDebuggerAgent::disable()
69 { 69 {
70 InspectorDebuggerAgent::disable(errorString); 70 InspectorDebuggerAgent::disable();
71 m_instrumentingAgents->setPageDebuggerAgent(0); 71 m_instrumentingAgents->setPageDebuggerAgent(0);
72 } 72 }
73 73
74 void PageDebuggerAgent::startListeningScriptDebugServer() 74 void PageDebuggerAgent::startListeningScriptDebugServer()
75 { 75 {
76 scriptDebugServer().addListener(this, m_pageAgent->page()); 76 scriptDebugServer().addListener(this, m_pageAgent->page());
77 } 77 }
78 78
79 void PageDebuggerAgent::stopListeningScriptDebugServer() 79 void PageDebuggerAgent::stopListeningScriptDebugServer()
80 { 80 {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 void PageDebuggerAgent::didClearMainFrameWindowObject() 116 void PageDebuggerAgent::didClearMainFrameWindowObject()
117 { 117 {
118 reset(); 118 reset();
119 scriptDebugServer().setScriptPreprocessor(m_pageAgent->scriptPreprocessor()) ; 119 scriptDebugServer().setScriptPreprocessor(m_pageAgent->scriptPreprocessor()) ;
120 } 120 }
121 121
122 } // namespace WebCore 122 } // namespace WebCore
123 123
124 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) 124 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR)
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/PageDebuggerAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698