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

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

Issue 16226004: Replace JSON (de)serialization of extension messages with direct Value pickling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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/messaging/native_message_process_host.h
diff --git a/chrome/browser/extensions/api/messaging/native_message_process_host.h b/chrome/browser/extensions/api/messaging/native_message_process_host.h
index 987055fc24e3402f35bc50c50662cdec76edc986..ef339b2a8b615e683fc016519f4c33f9f80626ef 100644
--- a/chrome/browser/extensions/api/messaging/native_message_process_host.h
+++ b/chrome/browser/extensions/api/messaging/native_message_process_host.h
@@ -15,13 +15,15 @@
#include "chrome/browser/extensions/api/messaging/native_process_launcher.h"
#include "content/public/browser/browser_thread.h"
-namespace net {
+namespace base {
+class ListValue;
+}
+namespace net {
class DrainableIOBuffer;
class FileStream;
class IOBuffer;
class IOBufferWithSize;
-
} // namespace net
namespace extensions {
@@ -43,8 +45,9 @@ class NativeMessageProcessHost
public:
virtual ~Client() {}
// Called on the UI thread.
- virtual void PostMessageFromNativeProcess(int port_id,
- const std::string& message) = 0;
+ virtual void PostMessageFromNativeProcess(
+ int port_id,
+ scoped_ptr<base::ListValue> message) = 0;
virtual void CloseChannel(int port_id,
const std::string& error_message) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698