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

Side by Side Diff: Source/devtools/front_end/InspectorBackend.js

Issue 185463010: DevTools: Introduce Target class which holds connection & models (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@gr-RuntimeAgent
Patch Set: Solve compilation issues Created 6 years, 9 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 /** 331 /**
332 * @param {string} domain 332 * @param {string} domain
333 * @return {!InspectorBackendClass.AgentPrototype} 333 * @return {!InspectorBackendClass.AgentPrototype}
334 */ 334 */
335 agent: function(domain) 335 agent: function(domain)
336 { 336 {
337 return this._agents[domain]; 337 return this._agents[domain];
338 }, 338 },
339 339
340 /** 340 /**
341 * @return {!Array.<string>}
342 */
343 domains: function()
344 {
345 return Object.keys(this._agents);
346 },
347
348 /**
341 * @param {string} domain 349 * @param {string} domain
342 * @param {string} method 350 * @param {string} method
343 * @param {?Object} params 351 * @param {?Object} params
344 * @param {?function(*)} callback 352 * @param {?function(*)} callback
345 * @private 353 * @private
346 */ 354 */
347 _wrapCallbackAndSendMessageObject: function(domain, method, params, callback ) 355 _wrapCallbackAndSendMessageObject: function(domain, method, params, callback )
348 { 356 {
349 var messageObject = {}; 357 var messageObject = {};
350 messageObject.method = method; 358 messageObject.method = method;
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 } 715 }
708 716
709 } 717 }
710 718
711 InspectorBackendClass.Options = { 719 InspectorBackendClass.Options = {
712 dumpInspectorTimeStats: false, 720 dumpInspectorTimeStats: false,
713 dumpInspectorProtocolMessages: false 721 dumpInspectorProtocolMessages: false
714 } 722 }
715 723
716 InspectorBackend = new InspectorBackendClass(); 724 InspectorBackend = new InspectorBackendClass();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698