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

Side by Side Diff: chrome/browser/extensions/api/debugger/debugger_api.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Implements the Chrome Extensions Debugger API. 5 // Implements the Chrome Extensions Debugger API.
6 6
7 #include "chrome/browser/extensions/api/debugger/debugger_api.h" 7 #include "chrome/browser/extensions/api/debugger/debugger_api.h"
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 DictionaryValue* params_value; 345 DictionaryValue* params_value;
346 if (dictionary->GetDictionary("params", &params_value)) 346 if (dictionary->GetDictionary("params", &params_value))
347 params.additional_properties.Swap(params_value); 347 params.additional_properties.Swap(params_value);
348 348
349 scoped_ptr<ListValue> args(OnEvent::Create(debuggee, method_name, params)); 349 scoped_ptr<ListValue> args(OnEvent::Create(debuggee, method_name, params));
350 extensions::ExtensionSystem::Get(profile)->event_router()-> 350 extensions::ExtensionSystem::Get(profile)->event_router()->
351 DispatchEventToExtension(extension_id_, keys::kOnEvent, args.Pass(), 351 DispatchEventToExtension(extension_id_, keys::kOnEvent, args.Pass(),
352 profile, GURL()); 352 profile, GURL());
353 } else { 353 } else {
354 SendCommandDebuggerFunction* function = pending_requests_[id]; 354 SendCommandDebuggerFunction* function = pending_requests_[id];
355 if (!function) 355 if (!function)pending_requests_[id].get()
356 return; 356 return;
357 357
358 function->SendResponseBody(dictionary); 358 function->SendResponseBody(dictionary);
359 pending_requests_.erase(id); 359 pending_requests_.erase(id);
360 } 360 }
361 } 361 }
362 362
363 ExtensionDevToolsInfoBarDelegate::ExtensionDevToolsInfoBarDelegate( 363 ExtensionDevToolsInfoBarDelegate::ExtensionDevToolsInfoBarDelegate(
364 InfoBarTabHelper* infobar_helper, 364 InfoBarTabHelper* infobar_helper,
365 const std::string& client_name, 365 const std::string& client_name,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 } 547 }
548 548
549 // static 549 // static
550 void DebuggerApi::MarkDevToolsClientHostAsReplaced( 550 void DebuggerApi::MarkDevToolsClientHostAsReplaced(
551 DevToolsClientHost* client_host) { 551 DevToolsClientHost* client_host) {
552 ExtensionDevToolsClientHost* host = AttachedClientHosts::GetInstance()-> 552 ExtensionDevToolsClientHost* host = AttachedClientHosts::GetInstance()->
553 AsExtensionDevToolsClientHost(client_host); 553 AsExtensionDevToolsClientHost(client_host);
554 if (host) 554 if (host)
555 host->MarkAsReplaced(); 555 host->MarkAsReplaced();
556 } 556 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698