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

Unified Diff: chrome/browser/extensions/api/debugger/debugger_api.cc

Issue 11826048: Revert 176015 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/debugger/debugger_api.cc
===================================================================
--- chrome/browser/extensions/api/debugger/debugger_api.cc (revision 176046)
+++ chrome/browser/extensions/api/debugger/debugger_api.cc (working copy)
@@ -104,7 +104,7 @@
bool MatchesContentsAndExtensionId(WebContents* web_contents,
const std::string& extension_id);
void Close();
- void SendMessageToBackend(DebuggerSendCommandFunction* function,
+ void SendMessageToBackend(SendCommandDebuggerFunction* function,
const std::string& method,
SendCommand::Params::CommandParams* command_params);
@@ -129,7 +129,7 @@
int tab_id_;
content::NotificationRegistrar registrar_;
int last_request_id_;
- typedef std::map<int, scoped_refptr<DebuggerSendCommandFunction> >
+ typedef std::map<int, scoped_refptr<SendCommandDebuggerFunction> >
PendingRequests;
PendingRequests pending_requests_;
ExtensionDevToolsInfoBarDelegate* infobar_delegate_;
@@ -249,7 +249,7 @@
}
void ExtensionDevToolsClientHost::SendMessageToBackend(
- DebuggerSendCommandFunction* function,
+ SendCommandDebuggerFunction* function,
const std::string& method,
SendCommand::Params::CommandParams* command_params) {
DictionaryValue protocol_request;
@@ -343,7 +343,7 @@
extensions::ExtensionSystem::Get(profile)->event_router()->
DispatchEventToExtension(extension_id_, event.Pass());
} else {
- DebuggerSendCommandFunction* function = pending_requests_[id];
+ SendCommandDebuggerFunction* function = pending_requests_[id];
if (!function)
return;
@@ -457,11 +457,11 @@
return true;
}
-DebuggerAttachFunction::DebuggerAttachFunction() {}
+AttachDebuggerFunction::AttachDebuggerFunction() {}
-DebuggerAttachFunction::~DebuggerAttachFunction() {}
+AttachDebuggerFunction::~AttachDebuggerFunction() {}
-bool DebuggerAttachFunction::RunImpl() {
+bool AttachDebuggerFunction::RunImpl() {
scoped_ptr<Attach::Params> params(Attach::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -497,11 +497,11 @@
return true;
}
-DebuggerDetachFunction::DebuggerDetachFunction() {}
+DetachDebuggerFunction::DetachDebuggerFunction() {}
-DebuggerDetachFunction::~DebuggerDetachFunction() {}
+DetachDebuggerFunction::~DetachDebuggerFunction() {}
-bool DebuggerDetachFunction::RunImpl() {
+bool DetachDebuggerFunction::RunImpl() {
scoped_ptr<Detach::Params> params(Detach::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -514,11 +514,11 @@
return true;
}
-DebuggerSendCommandFunction::DebuggerSendCommandFunction() {}
+SendCommandDebuggerFunction::SendCommandDebuggerFunction() {}
-DebuggerSendCommandFunction::~DebuggerSendCommandFunction() {}
+SendCommandDebuggerFunction::~SendCommandDebuggerFunction() {}
-bool DebuggerSendCommandFunction::RunImpl() {
+bool SendCommandDebuggerFunction::RunImpl() {
scoped_ptr<SendCommand::Params> params(SendCommand::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
@@ -531,7 +531,7 @@
return true;
}
-void DebuggerSendCommandFunction::SendResponseBody(
+void SendCommandDebuggerFunction::SendResponseBody(
DictionaryValue* response) {
Value* error_body;
if (response->Get("error", &error_body)) {
« no previous file with comments | « chrome/browser/extensions/api/debugger/debugger_api.h ('k') | chrome/browser/extensions/api/declarative/declarative_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698