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

Unified Diff: chrome/browser/debugger/extension_ports_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/debugger/devtools_remote_service.cc ('k') | chrome/browser/dom_ui/dom_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/extension_ports_remote_service.cc
===================================================================
--- chrome/browser/debugger/extension_ports_remote_service.cc (revision 29830)
+++ chrome/browser/debugger/extension_ports_remote_service.cc (working copy)
@@ -9,8 +9,8 @@
#include "chrome/browser/debugger/extension_ports_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/message_loop.h"
#include "base/string_util.h"
#include "base/values.h"
@@ -147,7 +147,7 @@
const DevToolsRemoteMessage& message) {
DCHECK_EQ(MessageLoop::current()->type(), MessageLoop::TYPE_UI);
const std::string destinationString = 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();
@@ -220,7 +220,7 @@
const Value& response, 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, response_content));
@@ -271,7 +271,7 @@
content.SetString(kCommandWide, kOnMessage);
content.SetInteger(kResultWide, RESULT_OK);
// Turn the stringified message body back into JSON.
- Value* data = JSONReader::Read(message, false);
+ Value* data = base::JSONReader::Read(message, false);
if (!data) {
NOTREACHED();
return;
@@ -374,7 +374,7 @@
}
std::string message;
// Stringified the JSON message body.
- JSONWriter::Write(data, false, &message);
+ base::JSONWriter::Write(data, false, &message);
LOG(INFO) << "postMessage: port " << port_id
<< ", message: <" << message << ">";
PortIdSet::iterator portEntry = openPortIds_.find(port_id);
« no previous file with comments | « chrome/browser/debugger/devtools_remote_service.cc ('k') | chrome/browser/dom_ui/dom_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698