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

Unified Diff: chrome/renderer/extensions/cast_streaming_native_handler.cc

Issue 1854983002: [Extensions] Add more bindings access checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 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
Index: chrome/renderer/extensions/cast_streaming_native_handler.cc
diff --git a/chrome/renderer/extensions/cast_streaming_native_handler.cc b/chrome/renderer/extensions/cast_streaming_native_handler.cc
index 12ffab339dbc560cb252f33c29cdf80d79095c5c..06ae435e481c22f1ff53eab68ec5108048ececc8 100644
--- a/chrome/renderer/extensions/cast_streaming_native_handler.cc
+++ b/chrome/renderer/extensions/cast_streaming_native_handler.cc
@@ -187,42 +187,43 @@ CastStreamingNativeHandler::CastStreamingNativeHandler(ScriptContext* context)
: ObjectBackedNativeHandler(context),
last_transport_id_(1),
weak_factory_(this) {
- RouteFunction("CreateSession",
+ RouteFunction("CreateSession", "cast.streaming.session",
base::Bind(&CastStreamingNativeHandler::CreateCastSession,
weak_factory_.GetWeakPtr()));
- RouteFunction("DestroyCastRtpStream",
+ RouteFunction("DestroyCastRtpStream", "cast.streaming.rtpStream",
base::Bind(&CastStreamingNativeHandler::DestroyCastRtpStream,
weak_factory_.GetWeakPtr()));
RouteFunction(
- "GetSupportedParamsCastRtpStream",
+ "GetSupportedParamsCastRtpStream", "cast.streaming.rtpStream",
base::Bind(&CastStreamingNativeHandler::GetSupportedParamsCastRtpStream,
weak_factory_.GetWeakPtr()));
- RouteFunction("StartCastRtpStream",
+ RouteFunction("StartCastRtpStream", "cast.streaming.rtpStream",
base::Bind(&CastStreamingNativeHandler::StartCastRtpStream,
weak_factory_.GetWeakPtr()));
- RouteFunction("StopCastRtpStream",
+ RouteFunction("StopCastRtpStream", "cast.streaming.rtpStream",
base::Bind(&CastStreamingNativeHandler::StopCastRtpStream,
weak_factory_.GetWeakPtr()));
- RouteFunction("DestroyCastUdpTransport",
+ RouteFunction("DestroyCastUdpTransport", "cast.streaming.udpTransport",
base::Bind(&CastStreamingNativeHandler::DestroyCastUdpTransport,
weak_factory_.GetWeakPtr()));
RouteFunction(
- "SetDestinationCastUdpTransport",
+ "SetDestinationCastUdpTransport", "cast.streaming.udpTransport",
base::Bind(&CastStreamingNativeHandler::SetDestinationCastUdpTransport,
weak_factory_.GetWeakPtr()));
RouteFunction(
- "SetOptionsCastUdpTransport",
+ "SetOptionsCastUdpTransport", "cast.streaming.udpTransport",
base::Bind(&CastStreamingNativeHandler::SetOptionsCastUdpTransport,
weak_factory_.GetWeakPtr()));
- RouteFunction("ToggleLogging",
+ RouteFunction("ToggleLogging", "cast.streaming.rtpStream",
base::Bind(&CastStreamingNativeHandler::ToggleLogging,
weak_factory_.GetWeakPtr()));
- RouteFunction("GetRawEvents",
+ RouteFunction("GetRawEvents", "cast.streaming.rtpStream",
base::Bind(&CastStreamingNativeHandler::GetRawEvents,
weak_factory_.GetWeakPtr()));
- RouteFunction("GetStats", base::Bind(&CastStreamingNativeHandler::GetStats,
- weak_factory_.GetWeakPtr()));
- RouteFunction("StartCastRtpReceiver",
+ RouteFunction("GetStats", "cast.streaming.rtpStream",
+ base::Bind(&CastStreamingNativeHandler::GetStats,
+ weak_factory_.GetWeakPtr()));
+ RouteFunction("StartCastRtpReceiver", "cast.streaming.receiverSession",
base::Bind(&CastStreamingNativeHandler::StartCastRtpReceiver,
weak_factory_.GetWeakPtr()));
}

Powered by Google App Engine
This is Rietveld 408576698