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

Unified Diff: blimp/net/thread_pipe_manager.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/test_common.cc ('k') | blimp/net/thread_pipe_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/thread_pipe_manager.h
diff --git a/blimp/net/thread_pipe_manager.h b/blimp/net/thread_pipe_manager.h
deleted file mode 100644
index 84d9a8d108a32e2fa4e84e554519f659446e2278..0000000000000000000000000000000000000000
--- a/blimp/net/thread_pipe_manager.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2016 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_THREAD_PIPE_MANAGER_H_
-#define BLIMP_NET_THREAD_PIPE_MANAGER_H_
-
-#include <memory>
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/sequence_checker.h"
-#include "blimp/common/proto/blimp_message.pb.h"
-#include "blimp/net/blimp_net_export.h"
-#include "blimp/net/pipe_manager.h"
-
-namespace base {
-class SequencedTaskRunner;
-} // namespace base
-
-namespace blimp {
-
-class BlimpMessageThreadPipe;
-class BrowserConnectionHandler;
-class ConnectionThreadPipeManager;
-
-// Manages routing of messages between a |connection_manager| operating on one
-// SequencedTaskRunner, and per-feature message processors running on the same
-// TaskRunner as the caller. This is used to allow Blimp feature implementations
-// to operate on the UI thread, with network I/O delegated to an IO thread.
-class BLIMP_NET_EXPORT ThreadPipeManager : public PipeManager {
- public:
- // Caller is responsible for ensuring that |connection_handler| outlives
- // |this|.
- explicit ThreadPipeManager(
- const scoped_refptr<base::SequencedTaskRunner>& connection_task_runner,
- BrowserConnectionHandler* connection_handler);
-
- ~ThreadPipeManager() override;
-
- std::unique_ptr<BlimpMessageProcessor> RegisterFeature(
- BlimpMessage::FeatureCase feature_case,
- BlimpMessageProcessor* incoming_processor) override;
-
- private:
- scoped_refptr<base::SequencedTaskRunner> connection_task_runner_;
-
- // Container for BlimpMessageThreadPipes that are destroyed on IO thread.
- std::unique_ptr<ConnectionThreadPipeManager> connection_pipe_manager_;
-
- // Pipes for routing incoming messages from the connection's task runner
- // to handlers on the caller's task runner.
- std::vector<std::unique_ptr<BlimpMessageThreadPipe>> incoming_pipes_;
-
- base::SequenceChecker sequence_checker_;
-
- DISALLOW_COPY_AND_ASSIGN(ThreadPipeManager);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_NET_THREAD_PIPE_MANAGER_H_
« no previous file with comments | « blimp/net/test_common.cc ('k') | blimp/net/thread_pipe_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698