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

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

Issue 1143453005: [Media Router] Remove RouteIDManager. (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 | « chrome/browser/media/router/media_router.gypi ('k') | chrome/browser/media/router/route_id_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/route_id_manager.h
diff --git a/chrome/browser/media/router/route_id_manager.h b/chrome/browser/media/router/route_id_manager.h
deleted file mode 100644
index 8497bd187ef494c819bccd970b9e412f752848fc..0000000000000000000000000000000000000000
--- a/chrome/browser/media/router/route_id_manager.h
+++ /dev/null
@@ -1,42 +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_ROUTE_ID_MANAGER_H_
-#define CHROME_BROWSER_MEDIA_ROUTER_ROUTE_ID_MANAGER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/gtest_prod_util.h"
-#include "base/memory/singleton.h"
-#include "base/threading/non_thread_safe.h"
-
-namespace media_router {
-
-class MediaRoute;
-
-// Shared singleton which coordinates the assignment of unique IDs to
-// MediaRoute objects.
-// Class is not threadsafe; IDs should be created on the same thread.
-class RouteIDManager : public base::NonThreadSafe {
- public:
- static RouteIDManager* GetInstance();
-
- std::string ForLocalRoute();
-
- private:
- FRIEND_TEST_ALL_PREFIXES(RouteIDManagerTest, ForLocalRoute);
- friend struct DefaultSingletonTraits<RouteIDManager>;
-
- RouteIDManager();
-
- // Monotonically increasing ID number.
- uint64 next_local_id_;
-
- DISALLOW_COPY_AND_ASSIGN(RouteIDManager);
-};
-
-} // namespace media_router
-
-#endif // CHROME_BROWSER_MEDIA_ROUTER_ROUTE_ID_MANAGER_H_
« no previous file with comments | « chrome/browser/media/router/media_router.gypi ('k') | chrome/browser/media/router/route_id_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698