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

Unified Diff: trunk/src/chrome/browser/extensions/api/messaging/native_message_process_host.h

Issue 16336011: Revert 203489 "Replace JSON (de)serialization of extension messa..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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: trunk/src/chrome/browser/extensions/api/messaging/native_message_process_host.h
===================================================================
--- trunk/src/chrome/browser/extensions/api/messaging/native_message_process_host.h (revision 203729)
+++ trunk/src/chrome/browser/extensions/api/messaging/native_message_process_host.h (working copy)
@@ -15,15 +15,13 @@
#include "chrome/browser/extensions/api/messaging/native_process_launcher.h"
#include "content/public/browser/browser_thread.h"
-namespace base {
-class ListValue;
-}
-
namespace net {
+
class DrainableIOBuffer;
class FileStream;
class IOBuffer;
class IOBufferWithSize;
+
} // namespace net
namespace extensions {
@@ -45,9 +43,8 @@
public:
virtual ~Client() {}
// Called on the UI thread.
- virtual void PostMessageFromNativeProcess(
- int port_id,
- scoped_ptr<base::ListValue> message) = 0;
+ virtual void PostMessageFromNativeProcess(int port_id,
+ const std::string& message) = 0;
virtual void CloseChannel(int port_id,
const std::string& error_message) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698