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

Unified Diff: blimp/net/thread_pipe_manager.cc

Issue 1933053003: Used oneof in blimp_message.proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: blimp/net/thread_pipe_manager.cc
diff --git a/blimp/net/thread_pipe_manager.cc b/blimp/net/thread_pipe_manager.cc
index 1363e093b9794796f2fac477080d1b66f4a890c6..b5d9a72d2d618c543897316441181ccd9b222c4d 100644
--- a/blimp/net/thread_pipe_manager.cc
+++ b/blimp/net/thread_pipe_manager.cc
@@ -24,7 +24,7 @@ class IoThreadPipeManager {
// Connects message pipes between the specified feature and the network layer,
// using |incoming_proxy| as the incoming message processor, and connecting
// |outgoing_pipe| to the actual message sender.
- void RegisterFeature(BlimpMessage::Type type,
+ void RegisterFeature(BlimpMessage::FeatureCase type,
std::unique_ptr<BlimpMessageThreadPipe> outgoing_pipe,
std::unique_ptr<BlimpMessageProcessor> incoming_proxy);
@@ -54,7 +54,7 @@ IoThreadPipeManager::IoThreadPipeManager(
IoThreadPipeManager::~IoThreadPipeManager() {}
void IoThreadPipeManager::RegisterFeature(
- BlimpMessage::Type type,
+ BlimpMessage::FeatureCase type,
std::unique_ptr<BlimpMessageThreadPipe> outgoing_pipe,
std::unique_ptr<BlimpMessageProcessor> incoming_proxy) {
// Registers |incoming_proxy| as the message processor for incoming
@@ -83,7 +83,7 @@ ThreadPipeManager::~ThreadPipeManager() {
}
std::unique_ptr<BlimpMessageProcessor> ThreadPipeManager::RegisterFeature(
- BlimpMessage::Type type,
+ BlimpMessage::FeatureCase type,
BlimpMessageProcessor* incoming_processor) {
// Creates an outgoing pipe and a proxy for forwarding messages
// from features on the UI thread to network components on the IO thread.

Powered by Google App Engine
This is Rietveld 408576698