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

Unified Diff: mojo/public/cpp/bindings/lib/multiplex_router.cc

Issue 2114523002: Move more Mojo bindings helpers out of internal namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@group-controller
Patch Set: rebase Created 4 years, 6 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/public/cpp/bindings/lib/multiplex_router.cc
diff --git a/mojo/public/cpp/bindings/lib/multiplex_router.cc b/mojo/public/cpp/bindings/lib/multiplex_router.cc
index f0e4e1b52e411cb8bc2abdecda0aef26cf26888c..dcfbab1545b4ef03eeac2bc6a2e365d972c7eb93 100644
--- a/mojo/public/cpp/bindings/lib/multiplex_router.cc
+++ b/mojo/public/cpp/bindings/lib/multiplex_router.cc
@@ -18,7 +18,7 @@
#include "mojo/public/cpp/bindings/associated_group.h"
#include "mojo/public/cpp/bindings/interface_endpoint_client.h"
#include "mojo/public/cpp/bindings/interface_endpoint_controller.h"
-#include "mojo/public/cpp/bindings/lib/sync_handle_watcher.h"
+#include "mojo/public/cpp/bindings/sync_handle_watcher.h"
namespace mojo {
namespace internal {
@@ -497,7 +497,7 @@ bool MultiplexRouter::Accept(Message* message) {
tasks_.push_back(Task::CreateMessageTask(message));
Task* task = tasks_.back().get();
- if (task->message->has_flag(kMessageIsSync)) {
+ if (task->message->has_flag(Message::kFlagIsSync)) {
InterfaceId id = task->message->interface_id();
sync_message_tasks_[id].push_back(task);
auto iter = endpoints_.find(id);
@@ -596,7 +596,7 @@ void MultiplexRouter::ProcessTasks(
InterfaceId id = kInvalidInterfaceId;
bool sync_message = task->IsMessageTask() && task->message &&
- task->message->has_flag(kMessageIsSync);
+ task->message->has_flag(Message::kFlagIsSync);
if (sync_message) {
id = task->message->interface_id();
auto& sync_message_queue = sync_message_tasks_[id];
@@ -744,7 +744,7 @@ bool MultiplexRouter::ProcessIncomingMessage(
}
bool can_direct_call;
- if (message->has_flag(kMessageIsSync)) {
+ if (message->has_flag(Message::kFlagIsSync)) {
can_direct_call = client_call_behavior != NO_DIRECT_CLIENT_CALLS &&
endpoint->task_runner()->BelongsToCurrentThread();
} else {
« no previous file with comments | « mojo/public/cpp/bindings/lib/multiplex_router.h ('k') | mojo/public/cpp/bindings/lib/pipe_control_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698