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

Unified Diff: mojo/services/network/http_connection_impl.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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: mojo/services/network/http_connection_impl.cc
diff --git a/mojo/services/network/http_connection_impl.cc b/mojo/services/network/http_connection_impl.cc
index 21c2f3767abc6e014c184747da8a7cc155e02a2d..b2c7fd1d8984acb2481f913f4e2623d323c64f5f 100644
--- a/mojo/services/network/http_connection_impl.cc
+++ b/mojo/services/network/http_connection_impl.cc
@@ -156,7 +156,7 @@ class HttpConnectionImpl::WebSocketImpl : public WebSocket {
}
void Send(bool fin, MessageType type, uint32_t num_bytes) override {
- if (!fin || type != MESSAGE_TYPE_TEXT) {
+ if (!fin || type != MessageType::TEXT) {
NOTIMPLEMENTED();
Close();
}
@@ -196,7 +196,7 @@ class HttpConnectionImpl::WebSocketImpl : public WebSocket {
return;
if (buffer)
- client_->DidReceiveData(true, MESSAGE_TYPE_TEXT, num_bytes);
+ client_->DidReceiveData(true, MessageType::TEXT, num_bytes);
}
// Checks whether Close() has been called.
« no previous file with comments | « mojo/public/tools/bindings/pylib/mojom/generate/generator.py ('k') | mojo/services/network/http_server_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698