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

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

Issue 627573002: Enable passing cast channel certificate authority keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added static to consts. Created 6 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
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 32a8cc0f152e8fd76a19f86c6a0521d0f6134a34..dfa719a3eba793c2e119368de470e92247473fbd 100644
--- a/extensions/browser/api/cast_channel/cast_channel_api.h
+++ b/extensions/browser/api/cast_channel/cast_channel_api.h
@@ -232,13 +232,31 @@ class CastChannelGetLogsFunction : public CastChannelAsyncApiFunction {
private:
DECLARE_EXTENSION_FUNCTION("cast.channel.getLogs", CAST_CHANNEL_GETLOGS)
- void OnClose(int result);
-
CastChannelAPI* api_;
DISALLOW_COPY_AND_ASSIGN(CastChannelGetLogsFunction);
};
+class CastChannelSetAuthorityKeysFunction : public CastChannelAsyncApiFunction {
+ public:
+ CastChannelSetAuthorityKeysFunction();
+
+ protected:
+ virtual ~CastChannelSetAuthorityKeysFunction();
+
+ // AsyncApiFunction:
+ virtual bool Prepare() OVERRIDE;
+ virtual void AsyncWorkStart() OVERRIDE;
+
+ private:
+ DECLARE_EXTENSION_FUNCTION("cast.channel.setAuthorityKeys",
+ CAST_CHANNEL_SETAUTHORITYKEYS)
+
+ scoped_ptr<cast_channel::SetAuthorityKeys::Params> params_;
+
+ DISALLOW_COPY_AND_ASSIGN(CastChannelSetAuthorityKeysFunction);
+};
+
} // namespace extensions
#endif // EXTENSIONS_BROWSER_API_CAST_CHANNEL_CAST_CHANNEL_API_H_

Powered by Google App Engine
This is Rietveld 408576698