Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_TASK_MANAGER_LEGACY_TASK_MANAGER_TESTER_H_ |
| 6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_FACTORY_H_ | 6 #define CHROME_BROWSER_TASK_MANAGER_LEGACY_TASK_MANAGER_TESTER_H_ |
|
ncarter (slow)
2016/05/06 21:50:57
Ignore this LHS.
| |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "services/shell/public/cpp/shell_client.h" | 11 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" |
| 12 | 12 |
| 13 namespace media { | 13 namespace task_manager { |
| 14 | 14 |
| 15 // Creates a MojoMediaApplication instance using the default MojoMediaClient. | 15 // Implementation of the TaskManagerTester for the old task manager. |
| 16 std::unique_ptr<shell::ShellClient> CreateMojoMediaApplication( | 16 class LegacyTaskManagerTester : public browsertest_util::TaskManagerTester { |
|
afakhry
2016/05/07 00:16:09
mmm, what's the benefit of an extra level here? i.
ncarter (slow)
2016/05/07 22:27:10
It's about hiding the impl and preventing anybody
afakhry
2016/05/09 17:46:44
I honestly think it's an overkill. The object can
| |
| 17 const base::Closure& quit_closure); | 17 public: |
| 18 // Create a LegacyTaskManagerTester for the old (deprecated, mac-only) task | |
| 19 // manager. If you're writing a test, don't use this directly: see | |
| 20 // GetTaskManagerTester() instead. | |
| 21 static std::unique_ptr<LegacyTaskManagerTester> Create( | |
| 22 const base::Closure& callback); | |
| 23 }; | |
| 18 | 24 |
| 19 } // namespace media | 25 } // namespace task_manager |
| 20 | 26 |
| 21 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_APPLICATION_FACTORY_H_ | 27 #endif // CHROME_BROWSER_TASK_MANAGER_LEGACY_TASK_MANAGER_TESTER_H_ |
| OLD | NEW |