OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_TEST_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 virtual void set_last_selected_directory(const FilePath& path) { | 291 virtual void set_last_selected_directory(const FilePath& path) { |
292 last_selected_directory_ = path; | 292 last_selected_directory_ = path; |
293 } | 293 } |
294 #if defined(OS_CHROMEOS) | 294 #if defined(OS_CHROMEOS) |
295 virtual chromeos::ProxyConfigServiceImpl* | 295 virtual chromeos::ProxyConfigServiceImpl* |
296 GetChromeOSProxyConfigServiceImpl() { | 296 GetChromeOSProxyConfigServiceImpl() { |
297 return NULL; | 297 return NULL; |
298 } | 298 } |
299 virtual void SetupChromeOSEnterpriseExtensionObserver() { | 299 virtual void SetupChromeOSEnterpriseExtensionObserver() { |
300 } | 300 } |
301 virtual void ChangeApplicationLocale(const std::string&, bool) { | 301 virtual void ChangeAppLocale(const std::string&, AppLocaleChangedVia) { |
302 } | 302 } |
303 #endif // defined(OS_CHROMEOS) | 303 #endif // defined(OS_CHROMEOS) |
304 | 304 |
305 virtual PrefProxyConfigTracker* GetProxyConfigTracker(); | 305 virtual PrefProxyConfigTracker* GetProxyConfigTracker(); |
306 | 306 |
307 // Schedules a task on the history backend and runs a nested loop until the | 307 // Schedules a task on the history backend and runs a nested loop until the |
308 // task is processed. This has the effect of blocking the caller until the | 308 // task is processed. This has the effect of blocking the caller until the |
309 // history service processes all pending requests. | 309 // history service processes all pending requests. |
310 void BlockUntilHistoryProcessesPendingRequests(); | 310 void BlockUntilHistoryProcessesPendingRequests(); |
311 | 311 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 | 439 |
440 virtual ProfileId GetRuntimeId() { | 440 virtual ProfileId GetRuntimeId() { |
441 return original_profile_->GetRuntimeId(); | 441 return original_profile_->GetRuntimeId(); |
442 } | 442 } |
443 | 443 |
444 protected: | 444 protected: |
445 Profile* original_profile_; | 445 Profile* original_profile_; |
446 }; | 446 }; |
447 | 447 |
448 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 448 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |