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

Unified Diff: extensions/browser/api/cast_channel/cast_channel_api.h

Issue 456213002: Cast channel: Add cast.channel.getLogs extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ADd missing files Created 6 years, 4 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: extensions/browser/api/cast_channel/cast_channel_api.h
diff --git a/extensions/browser/api/cast_channel/cast_channel_api.h b/extensions/browser/api/cast_channel/cast_channel_api.h
index 4abeff3600f0304d40fc243529b82d5c083c9961..0055d3ede5bc4bfdac749e2db84be6254402320a 100644
--- a/extensions/browser/api/cast_channel/cast_channel_api.h
+++ b/extensions/browser/api/cast_channel/cast_channel_api.h
@@ -219,6 +219,28 @@ class CastChannelCloseFunction : public CastChannelAsyncApiFunction {
DISALLOW_COPY_AND_ASSIGN(CastChannelCloseFunction);
};
+class CastChannelGetLogsFunction : public CastChannelAsyncApiFunction {
+ public:
+ CastChannelGetLogsFunction();
+
+ protected:
+ virtual ~CastChannelGetLogsFunction();
+
+ // AsyncApiFunction:
+ virtual bool PrePrepare() OVERRIDE;
+ virtual bool Prepare() OVERRIDE;
+ virtual void AsyncWorkStart() OVERRIDE;
+
+ private:
+ DECLARE_EXTENSION_FUNCTION("cast.channel.getLogs", CAST_CHANNEL_GETLOGS)
+
+ void OnClose(int result);
+
+ CastChannelAPI* api_;
+
+ DISALLOW_COPY_AND_ASSIGN(CastChannelGetLogsFunction);
+};
+
} // namespace extensions
#endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_

Powered by Google App Engine
This is Rietveld 408576698