| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/test/webdriver/session_manager.h" | 5 #include "chrome/test/webdriver/session_manager.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/test/webdriver/utility_functions.h" | 8 #include "chrome/test/webdriver/utility_functions.h" |
| 9 #include "net/base/net_util.h" | 9 #include "net/base/net_util.h" |
| 10 | 10 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 70 } |
| 71 | 71 |
| 72 void SessionManager::set_url_base(const std::string& url_base) { | 72 void SessionManager::set_url_base(const std::string& url_base) { |
| 73 url_base_ = url_base; | 73 url_base_ = url_base; |
| 74 } | 74 } |
| 75 | 75 |
| 76 std::string SessionManager::url_base() const { | 76 std::string SessionManager::url_base() const { |
| 77 return url_base_; | 77 return url_base_; |
| 78 } | 78 } |
| 79 | 79 |
| 80 void SessionManager::set_chrome_dir(const FilePath& chrome_dir) { | |
| 81 chrome_dir_ = chrome_dir; | |
| 82 } | |
| 83 | |
| 84 FilePath SessionManager::chrome_dir() const { | |
| 85 return chrome_dir_; | |
| 86 } | |
| 87 | |
| 88 SessionManager::SessionManager() : port_(""), url_base_("") {} | 80 SessionManager::SessionManager() : port_(""), url_base_("") {} |
| 89 | 81 |
| 90 SessionManager::~SessionManager() {} | 82 SessionManager::~SessionManager() {} |
| 91 | 83 |
| 92 // static | 84 // static |
| 93 SessionManager* SessionManager::GetInstance() { | 85 SessionManager* SessionManager::GetInstance() { |
| 94 return Singleton<SessionManager>::get(); | 86 return Singleton<SessionManager>::get(); |
| 95 } | 87 } |
| 96 | 88 |
| 97 } // namespace webdriver | 89 } // namespace webdriver |
| OLD | NEW |