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

Unified Diff: blimp/net/blimp_message_demultiplexer.h

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master for good measure Created 3 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
« no previous file with comments | « blimp/net/blimp_message_checkpointer_unittest.cc ('k') | blimp/net/blimp_message_demultiplexer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_message_demultiplexer.h
diff --git a/blimp/net/blimp_message_demultiplexer.h b/blimp/net/blimp_message_demultiplexer.h
deleted file mode 100644
index 1a87ba1e16a39ca0d9cc953edcb5369b7283bf5c..0000000000000000000000000000000000000000
--- a/blimp/net/blimp_message_demultiplexer.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BLIMP_NET_BLIMP_MESSAGE_DEMULTIPLEXER_H_
-#define BLIMP_NET_BLIMP_MESSAGE_DEMULTIPLEXER_H_
-
-#include <map>
-
-#include "base/containers/small_map.h"
-#include "base/macros.h"
-#include "base/threading/thread_checker.h"
-#include "blimp/common/proto/blimp_message.pb.h"
-#include "blimp/net/blimp_message_processor.h"
-#include "blimp/net/blimp_net_export.h"
-
-namespace blimp {
-
-// Multiplexing BlimpMessageProcessor which routes BlimpMessages to message
-// processors based on the specific feature.
-// BlimpMessageDemultiplexer is created on the UI thread, and then used and
-// destroyed on the IO thread.
-class BLIMP_NET_EXPORT BlimpMessageDemultiplexer
- : public BlimpMessageProcessor {
- public:
- BlimpMessageDemultiplexer();
- ~BlimpMessageDemultiplexer() override;
-
- // Registers a message processor which will receive all messages
- // of the |feature_case| specified.
- // Only one handler may be added per type.
- //
- // |handler| must be valid when ProcessMessage() is called.
- void AddProcessor(BlimpMessage::FeatureCase feature_case,
- BlimpMessageProcessor* handler);
-
- // BlimpMessageProcessor implementation.
- void ProcessMessage(std::unique_ptr<BlimpMessage> message,
- const net::CompletionCallback& callback) override;
-
- private:
- base::SmallMap<std::map<BlimpMessage::FeatureCase, BlimpMessageProcessor*>>
- feature_receiver_map_;
-
- DISALLOW_COPY_AND_ASSIGN(BlimpMessageDemultiplexer);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_NET_BLIMP_MESSAGE_DEMULTIPLEXER_H_
« no previous file with comments | « blimp/net/blimp_message_checkpointer_unittest.cc ('k') | blimp/net/blimp_message_demultiplexer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698