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

Unified Diff: chrome/browser/media/router/presentation_connection_state_observer.h

Issue 1430413003: [Media Router] Connection state change listening redesign part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix content_unittests compile Created 5 years, 1 month 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: chrome/browser/media/router/presentation_connection_state_observer.h
diff --git a/chrome/browser/media/router/presentation_connection_state_observer.h b/chrome/browser/media/router/presentation_connection_state_observer.h
deleted file mode 100644
index 555f9fed43c06619656532db5584c39a298f102d..0000000000000000000000000000000000000000
--- a/chrome/browser/media/router/presentation_connection_state_observer.h
+++ /dev/null
@@ -1,40 +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 CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_CONNECTION_STATE_OBSERVER_H_
-#define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_CONNECTION_STATE_OBSERVER_H_
-
-#include "base/macros.h"
-#include "chrome/browser/media/router/media_route.h"
-
-namespace media_router {
-
-class MediaRouter;
-
-// Base class for observing state changes on a PresentationConnection.
-class PresentationConnectionStateObserver {
- public:
- // |router|: The MediaRouter instance to register this instance with.
- // |route_id|: ID of MediaRoute connected to the PresentationConnection to
- // be observed.
- PresentationConnectionStateObserver(MediaRouter* router,
- const MediaRoute::Id& route_id);
- virtual ~PresentationConnectionStateObserver();
-
- MediaRoute::Id route_id() const { return route_id_; }
-
- // Invoked when the state of PresentationConnection represented by |route_id_|
- // has changed to |state|.
- virtual void OnStateChanged(content::PresentationConnectionState state) {}
-
- private:
- MediaRouter* const router_;
- const MediaRoute::Id route_id_;
-
- DISALLOW_COPY_AND_ASSIGN(PresentationConnectionStateObserver);
-};
-
-} // namespace media_router
-
-#endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_CONNECTION_STATE_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698