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

Unified Diff: components/devtools_bridge/abstract_data_channel.h

Issue 1142463003: Remove devtools_bridge component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « components/devtools_bridge/README ('k') | components/devtools_bridge/abstract_peer_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/devtools_bridge/abstract_data_channel.h
diff --git a/components/devtools_bridge/abstract_data_channel.h b/components/devtools_bridge/abstract_data_channel.h
deleted file mode 100644
index 473774e08ccf3f807436d0c465e5e94bb65ed42c..0000000000000000000000000000000000000000
--- a/components/devtools_bridge/abstract_data_channel.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright 2014 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 COMPONENTS_DEVTOOLS_BRIDGE_ABSTRACT_DATA_CHANNEL_H_
-#define COMPONENTS_DEVTOOLS_BRIDGE_ABSTRACT_DATA_CHANNEL_H_
-
-#include <string>
-
-#include "base/callback.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace devtools_bridge {
-
-/**
- * WebRTC DataChannel adapter for DevTools bridge. Not thread safe.
- */
-class AbstractDataChannel {
- public:
- AbstractDataChannel() {}
- virtual ~AbstractDataChannel() {}
-
- /**
- * Called on WebRTC signaling thread.
- */
- class Observer {
- public:
- Observer() {}
- virtual ~Observer() {}
-
- virtual void OnOpen() = 0;
- virtual void OnClose() = 0;
-
- virtual void OnMessage(const void* data, size_t length) = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(Observer);
- };
-
- /**
- * Proxy for accessing data channel from a different thread.
- * May outlive data channel (methods will have no effect if DataChannel
- * destroyed).
- */
- class Proxy : public base::RefCountedThreadSafe<Proxy> {
- public:
- virtual void SendBinaryMessage(const void* data, size_t length) = 0;
- virtual void Close() = 0;
-
- protected:
- Proxy() {}
- virtual ~Proxy() {}
-
- private:
- friend class base::RefCountedThreadSafe<Proxy>;
-
- DISALLOW_COPY_AND_ASSIGN(Proxy);
- };
-
- virtual void RegisterObserver(scoped_ptr<Observer> observer) = 0;
- virtual void UnregisterObserver() = 0;
-
- virtual void SendBinaryMessage(void* data, size_t length) = 0;
- virtual void SendTextMessage(void* data, size_t length) = 0;
-
- virtual void Close() = 0;
-
- virtual scoped_refptr<Proxy> proxy() = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(AbstractDataChannel);
-};
-
-} // namespace devtools_bridge
-
-#endif // COMPONENTS_DEVTOOLS_BRIDGE_ABSTRACT_DATA_CHANNEL_H_
« no previous file with comments | « components/devtools_bridge/README ('k') | components/devtools_bridge/abstract_peer_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698