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/base/testing_browser_process.h" | 5 #include "chrome/test/base/testing_browser_process.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "chrome/browser/google/google_url_tracker.h" | 8 #include "chrome/browser/google/google_url_tracker.h" |
9 #include "chrome/browser/notifications/notification_ui_manager.h" | 9 #include "chrome/browser/notifications/notification_ui_manager.h" |
10 #include "chrome/browser/policy/browser_policy_connector.h" | 10 #include "chrome/browser/policy/browser_policy_connector.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 return NULL; | 161 return NULL; |
162 } | 162 } |
163 | 163 |
164 void TestingBrowserProcess::InitDevToolsHttpProtocolHandler( | 164 void TestingBrowserProcess::InitDevToolsHttpProtocolHandler( |
165 Profile* profile, | 165 Profile* profile, |
166 const std::string& ip, | 166 const std::string& ip, |
167 int port, | 167 int port, |
168 const std::string& frontend_url) { | 168 const std::string& frontend_url) { |
169 } | 169 } |
170 | 170 |
171 void TestingBrowserProcess::InitDevToolsLegacyProtocolHandler(int port) { | |
172 } | |
173 | |
174 unsigned int TestingBrowserProcess::AddRefModule() { | 171 unsigned int TestingBrowserProcess::AddRefModule() { |
175 return ++module_ref_count_; | 172 return ++module_ref_count_; |
176 } | 173 } |
177 | 174 |
178 unsigned int TestingBrowserProcess::ReleaseModule() { | 175 unsigned int TestingBrowserProcess::ReleaseModule() { |
179 DCHECK_GT(module_ref_count_, 0U); | 176 DCHECK_GT(module_ref_count_, 0U); |
180 return --module_ref_count_; | 177 return --module_ref_count_; |
181 } | 178 } |
182 | 179 |
183 bool TestingBrowserProcess::IsShuttingDown() { | 180 bool TestingBrowserProcess::IsShuttingDown() { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 260 } |
264 | 261 |
265 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { | 262 void TestingBrowserProcess::SetIOThread(IOThread* io_thread) { |
266 io_thread_ = io_thread; | 263 io_thread_ = io_thread; |
267 } | 264 } |
268 | 265 |
269 void TestingBrowserProcess::SetBrowserPolicyConnector( | 266 void TestingBrowserProcess::SetBrowserPolicyConnector( |
270 policy::BrowserPolicyConnector* connector) { | 267 policy::BrowserPolicyConnector* connector) { |
271 browser_policy_connector_.reset(connector); | 268 browser_policy_connector_.reset(connector); |
272 } | 269 } |
OLD | NEW |