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

Side by Side Diff: third_party/WebKit/Source/core/inspector/PageRuntimeAgent.cpp

Issue 1834073002: [DevTools] Create agents on attach. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 PageRuntimeAgent::~PageRuntimeAgent() 54 PageRuntimeAgent::~PageRuntimeAgent()
55 { 55 {
56 } 56 }
57 57
58 DEFINE_TRACE(PageRuntimeAgent) 58 DEFINE_TRACE(PageRuntimeAgent)
59 { 59 {
60 visitor->trace(m_inspectedFrames); 60 visitor->trace(m_inspectedFrames);
61 InspectorRuntimeAgent::trace(visitor); 61 InspectorRuntimeAgent::trace(visitor);
62 } 62 }
63 63
64 void PageRuntimeAgent::init()
65 {
66 InspectorRuntimeAgent::init();
67 }
68
69 void PageRuntimeAgent::enable(ErrorString* errorString) 64 void PageRuntimeAgent::enable(ErrorString* errorString)
70 { 65 {
71 if (m_enabled) 66 if (m_enabled)
72 return; 67 return;
73 68
74 InspectorRuntimeAgent::enable(errorString); 69 InspectorRuntimeAgent::enable(errorString);
75 } 70 }
76 71
77 void PageRuntimeAgent::disable(ErrorString* errorString) 72 void PageRuntimeAgent::disable(ErrorString* errorString)
78 { 73 {
(...skipping 13 matching lines...) Expand all
92 { 87 {
93 FrameConsole::mute(); 88 FrameConsole::mute();
94 } 89 }
95 90
96 void PageRuntimeAgent::unmuteConsole() 91 void PageRuntimeAgent::unmuteConsole()
97 { 92 {
98 FrameConsole::unmute(); 93 FrameConsole::unmute();
99 } 94 }
100 95
101 } // namespace blink 96 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698