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

Unified Diff: remoting/protocol/pepper_network_manager.h

Issue 10103016: Move PepperNetworkManager to client/plugin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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: remoting/protocol/pepper_network_manager.h
diff --git a/remoting/protocol/pepper_network_manager.h b/remoting/protocol/pepper_network_manager.h
deleted file mode 100644
index 55b0abba10cbc20bc95e5cfffa50774a146cc8b7..0000000000000000000000000000000000000000
--- a/remoting/protocol/pepper_network_manager.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 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 REMOTING_PROTOCOL_PEPPER_NETWORK_MANAGER_H_
-#define REMOTING_PROTOCOL_PEPPER_NETWORK_MANAGER_H_
-
-#include "base/compiler_specific.h"
-#include "base/memory/weak_ptr.h"
-#include "ppapi/cpp/instance_handle.h"
-#include "ppapi/cpp/private/network_monitor_private.h"
-#include "third_party/libjingle/source/talk/base/network.h"
-
-namespace pp {
-class NetworkListPrivate;
-} // namespace pp
-
-namespace remoting {
-namespace protocol {
-
-// PepperNetworkManager uses the PPB_NetworkMonitor_Private API to
-// implement the NetworkManager interface that libjingle uses to
-// monitor the host system's network interfaces.
-class PepperNetworkManager : public talk_base::NetworkManagerBase {
- public:
- PepperNetworkManager(const pp::InstanceHandle& instance);
- virtual ~PepperNetworkManager();
-
- // NetworkManager interface.
- virtual void StartUpdating() OVERRIDE;
- virtual void StopUpdating() OVERRIDE;
-
- private:
- static void OnNetworkListCallbackHandler(void* user_data,
- PP_Resource list_resource);
-
- void OnNetworkList(const pp::NetworkListPrivate& list);
-
- void SendNetworksChangedSignal();
-
- pp::NetworkMonitorPrivate monitor_;
- int start_count_;
- bool network_list_received_;
-
- base::WeakPtrFactory<PepperNetworkManager> weak_factory_;
-};
-
-} // namespace protocol
-} // namespace remoting
-
-#endif // REMOTING_PROTOCOL_PEPPER_NETWORK_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698