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

Unified Diff: chrome/test/webdriver/webdriver_session_manager.h

Issue 23526047: Delete old chromedriver code, and remove mongoose webserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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/test/webdriver/webdriver_session.cc ('k') | chrome/test/webdriver/webdriver_session_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_session_manager.h
diff --git a/chrome/test/webdriver/webdriver_session_manager.h b/chrome/test/webdriver/webdriver_session_manager.h
deleted file mode 100644
index bedf0a6a5c45452816c776fa0d47c99167f64d93..0000000000000000000000000000000000000000
--- a/chrome/test/webdriver/webdriver_session_manager.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2011 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_TEST_WEBDRIVER_WEBDRIVER_SESSION_MANAGER_H_
-#define CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_MANAGER_H_
-
-#include <map>
-#include <string>
-
-#include "base/files/file_path.h"
-#include "base/memory/singleton.h"
-#include "base/synchronization/lock.h"
-
-namespace webdriver {
-
-class Session;
-
-// Session manager keeps track of all of the session that are currently
-// running on the machine under test. With webdriver the user is allowed
-// multiple instances of the browser on the same machine. So 2 sessions
-// open would mean you would have 2 instances of chrome running under
-// their own profiles.
-class SessionManager {
- public:
- // Returns the singleton instance.
- static SessionManager* GetInstance();
-
- void Add(Session* session);
- bool Remove(const std::string& id);
- bool Has(const std::string& id) const;
-
- Session* GetSession(const std::string& id) const;
-
- void set_port(const std::string& port);
-
- void set_url_base(const std::string& url_base);
- std::string url_base() const;
-
- private:
- SessionManager();
- ~SessionManager();
- friend struct DefaultSingletonTraits<SessionManager>;
-
- std::map<std::string, Session*> map_;
- mutable base::Lock map_lock_;
- std::string port_;
- std::string url_base_;
-
- DISALLOW_COPY_AND_ASSIGN(SessionManager);
-};
-
-} // namespace webdriver
-
-#endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_MANAGER_H_
« no previous file with comments | « chrome/test/webdriver/webdriver_session.cc ('k') | chrome/test/webdriver/webdriver_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698