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

Unified Diff: mojo/public/cpp/bindings/lib/pipe_control_message_proxy.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
« no previous file with comments | « mojo/public/cpp/bindings/lib/pipe_control_message_proxy.h ('k') | mojo/public/cpp/bindings/lib/router.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/pipe_control_message_proxy.cc
diff --git a/mojo/public/cpp/bindings/lib/pipe_control_message_proxy.cc b/mojo/public/cpp/bindings/lib/pipe_control_message_proxy.cc
index a7f340fb701d4deeba0dcd4344be7899409012cf..7a160ff71838df2260be4bf8218af448e713d560 100644
--- a/mojo/public/cpp/bindings/lib/pipe_control_message_proxy.cc
+++ b/mojo/public/cpp/bindings/lib/pipe_control_message_proxy.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/public/cpp/bindings/lib/pipe_control_message_proxy.h"
+#include "mojo/public/cpp/bindings/pipe_control_message_proxy.h"
#include <stddef.h>
#include <utility>
@@ -15,23 +15,23 @@
#include "mojo/public/interfaces/bindings/pipe_control_messages.mojom.h"
namespace mojo {
-namespace internal {
namespace {
void SendRunOrClosePipeMessage(MessageReceiver* receiver,
pipe_control::RunOrClosePipeInputPtr input,
- SerializationContext* context) {
+ internal::SerializationContext* context) {
pipe_control::RunOrClosePipeMessageParamsPtr params_ptr(
pipe_control::RunOrClosePipeMessageParams::New());
params_ptr->input = std::move(input);
size_t size =
- PrepareToSerialize<pipe_control::RunOrClosePipeMessageParamsPtr>(
- params_ptr, context);
- MessageBuilder builder(pipe_control::kRunOrClosePipeMessageId, size);
+ internal::PrepareToSerialize<
+ pipe_control::RunOrClosePipeMessageParamsPtr>(params_ptr, context);
+ internal::MessageBuilder builder(pipe_control::kRunOrClosePipeMessageId,
+ size);
pipe_control::internal::RunOrClosePipeMessageParams_Data* params = nullptr;
- Serialize<pipe_control::RunOrClosePipeMessageParamsPtr>(
+ internal::Serialize<pipe_control::RunOrClosePipeMessageParamsPtr>(
params_ptr, builder.buffer(), &params, context);
params->EncodePointers();
builder.message()->set_interface_id(kInvalidInterfaceId);
@@ -72,5 +72,4 @@ void PipeControlMessageProxy::NotifyEndpointClosedBeforeSent(InterfaceId id) {
SendRunOrClosePipeMessage(receiver_, std::move(input), &context_);
}
-} // namespace internal
} // namespace mojo
« no previous file with comments | « mojo/public/cpp/bindings/lib/pipe_control_message_proxy.h ('k') | mojo/public/cpp/bindings/lib/router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698