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

Unified Diff: chrome/browser/debugger/debugger_remote_service.cc

Issue 316016: Move the json-related files into a separate json directory. This hopefully al... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « chrome/browser/bookmarks/bookmark_storage.cc ('k') | chrome/browser/debugger/devtools_remote_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/debugger_remote_service.cc
===================================================================
--- chrome/browser/debugger/debugger_remote_service.cc (revision 29830)
+++ chrome/browser/debugger/debugger_remote_service.cc (working copy)
@@ -7,8 +7,8 @@
#include "chrome/browser/debugger/debugger_remote_service.h"
-#include "base/json_reader.h"
-#include "base/json_writer.h"
+#include "base/json/json_reader.h"
+#include "base/json/json_writer.h"
#include "base/string_util.h"
#include "base/values.h"
#include "chrome/browser/browser_process.h"
@@ -65,7 +65,7 @@
void DebuggerRemoteService::HandleMessage(
const DevToolsRemoteMessage& message) {
const std::string destination = message.destination();
- scoped_ptr<Value> request(JSONReader::Read(message.content(), true));
+ scoped_ptr<Value> request(base::JSONReader::Read(message.content(), true));
if (request.get() == NULL) {
// Bad JSON
NOTREACHED();
@@ -129,7 +129,7 @@
const std::string& tool,
const std::string& destination) {
std::string response_content;
- JSONWriter::Write(&response, false, &response_content);
+ base::JSONWriter::Write(&response, false, &response_content);
scoped_ptr<DevToolsRemoteMessage> response_message(
DevToolsRemoteMessageBuilder::instance().Create(tool,
destination,
@@ -304,7 +304,7 @@
std::string v8_command;
DictionaryValue* v8_command_value;
content->GetDictionary(kDataWide, &v8_command_value);
- JSONWriter::Write(v8_command_value, false, &v8_command);
+ base::JSONWriter::Write(v8_command_value, false, &v8_command);
manager->ForwardToDevToolsAgent(
client_host, DevToolsAgentMsg_DebuggerCommand(v8_command));
// Do not send the response right now, as the JSON will be received from
« no previous file with comments | « chrome/browser/bookmarks/bookmark_storage.cc ('k') | chrome/browser/debugger/devtools_remote_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698