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

Unified Diff: chrome/browser/extensions/api/api_resource_event_notifier.h

Issue 10095020: Allow socket API to send binary data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Jeremy's judgments. Antonits. Created 8 years, 8 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 | « no previous file | chrome/browser/extensions/api/api_resource_event_notifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/api_resource_event_notifier.h
diff --git a/chrome/browser/extensions/api/api_resource_event_notifier.h b/chrome/browser/extensions/api/api_resource_event_notifier.h
index d9bb2260fcb1b0a1a5fe6cc439d6920d87907c4d..eb16a0118ed695ea241956a86b1e4766d2438528 100644
--- a/chrome/browser/extensions/api/api_resource_event_notifier.h
+++ b/chrome/browser/extensions/api/api_resource_event_notifier.h
@@ -16,6 +16,10 @@
class ExtensionEventRouter;
class Profile;
+namespace base {
+class ListValue;
+}
+
namespace extensions {
enum APIResourceEventType {
@@ -47,7 +51,10 @@ class APIResourceEventNotifier
virtual ~APIResourceEventNotifier();
virtual void OnConnectComplete(int result_code);
- virtual void OnDataRead(int result_code, const std::string& data);
+
+ // Takes ownership of data.
+ virtual void OnDataRead(int result_code, base::ListValue* data);
+
virtual void OnWriteComplete(int result_code);
static std::string APIResourceEventTypeToString(
« no previous file with comments | « no previous file | chrome/browser/extensions/api/api_resource_event_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698