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

Unified Diff: blimp/net/blimp_connection.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/DEPS ('k') | blimp/net/blimp_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/blimp_connection.h
diff --git a/blimp/net/blimp_connection.h b/blimp/net/blimp_connection.h
deleted file mode 100644
index 3ac9132af536e1295bea2bd10c7f8b9b456b9e48..0000000000000000000000000000000000000000
--- a/blimp/net/blimp_connection.h
+++ /dev/null
@@ -1,61 +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_CONNECTION_H_
-#define BLIMP_NET_BLIMP_CONNECTION_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/observer_list.h"
-#include "blimp/net/blimp_net_export.h"
-#include "blimp/net/connection_error_observer.h"
-
-namespace blimp {
-
-class BlimpMessageProcessor;
-
-// Encapsulates the state and logic used to exchange BlimpMessages over
-// a network connection.
-class BLIMP_NET_EXPORT BlimpConnection : public ConnectionErrorObserver {
- public:
- ~BlimpConnection() override;
-
- // Adds |observer| to the connection's error observer list.
- virtual void AddConnectionErrorObserver(ConnectionErrorObserver* observer);
-
- // Removes |observer| from the connection's error observer list.
- virtual void RemoveConnectionErrorObserver(ConnectionErrorObserver* observer);
-
- // Sets the processor which will take incoming messages for this connection.
- // Can be set multiple times, but previously set processors are discarded.
- // Caller retains the ownership of |processor|.
- virtual void SetIncomingMessageProcessor(
- BlimpMessageProcessor* processor) = 0;
-
- // Gets a processor for BrowserSession->BlimpConnection message routing.
- virtual BlimpMessageProcessor* GetOutgoingMessageProcessor() = 0;
-
- protected:
- class EndConnectionFilter;
- friend class EndConnectionFilter;
-
- BlimpConnection();
-
- void AddEndConnectionProcessor(BlimpMessageProcessor* processor);
-
- // ConnectionErrorObserver implementation.
- void OnConnectionError(int error) override;
-
- BlimpMessageProcessor* GetEndConnectionProcessor() const;
-
- private:
- std::unique_ptr<EndConnectionFilter> end_connection_filter_;
- base::ObserverList<ConnectionErrorObserver> error_observers_;
- DISALLOW_COPY_AND_ASSIGN(BlimpConnection);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_NET_BLIMP_CONNECTION_H_
« no previous file with comments | « blimp/net/DEPS ('k') | blimp/net/blimp_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698