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

Side by Side Diff: Source/core/inspector/InspectorRuntimeAgent.cpp

Issue 17030009: Inspector: wrapped inspector agent instances into factory-like wrappers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made InspectorBaseAgent RefCounted Created 7 years, 6 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 | Annotate | Revision Log
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 28 matching lines...) Expand all
39 39
40 #include "bindings/v8/ScriptDebugServer.h" 40 #include "bindings/v8/ScriptDebugServer.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 static bool asBool(const bool* const b) 44 static bool asBool(const bool* const b)
45 { 45 {
46 return b ? *b : false; 46 return b ? *b : false;
47 } 47 }
48 48
49 InspectorRuntimeAgent::InspectorRuntimeAgent(InstrumentingAgents* instrumentingA gents, InspectorCompositeState* state, InjectedScriptManager* injectedScriptMana ger, ScriptDebugServer* scriptDebugServer) 49 InspectorRuntimeAgent::InspectorRuntimeAgent(InstrumentingAgents* instrumentingA gents, InspectorState* state, InjectedScriptManager* injectedScriptManager, Scri ptDebugServer* scriptDebugServer)
50 : InspectorBaseAgent<InspectorRuntimeAgent>("Runtime", instrumentingAgents, state) 50 : InspectorBaseAgent(instrumentingAgents, state)
51 , m_enabled(false) 51 , m_enabled(false)
52 , m_injectedScriptManager(injectedScriptManager) 52 , m_injectedScriptManager(injectedScriptManager)
53 , m_scriptDebugServer(scriptDebugServer) 53 , m_scriptDebugServer(scriptDebugServer)
54 { 54 {
55 } 55 }
56 56
57 InspectorRuntimeAgent::~InspectorRuntimeAgent() 57 InspectorRuntimeAgent::~InspectorRuntimeAgent()
58 { 58 {
59 } 59 }
60 60
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 { 140 {
141 m_injectedScriptManager->releaseObjectGroup(objectGroup); 141 m_injectedScriptManager->releaseObjectGroup(objectGroup);
142 } 142 }
143 143
144 void InspectorRuntimeAgent::run(ErrorString*) 144 void InspectorRuntimeAgent::run(ErrorString*)
145 { 145 {
146 } 146 }
147 147
148 } // namespace WebCore 148 } // namespace WebCore
149 149
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698