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 #ifndef CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_MODEL_H_ | 5 #ifndef CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_MODEL_H_ |
6 #define CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_MODEL_H_ | 6 #define CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_MODEL_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/strings/string16.h" |
9 | 9 |
10 class CommandLine; | 10 class CommandLine; |
11 | 11 |
12 // The chrome diagnostics system is a model-view-controller system. The Model | 12 // The chrome diagnostics system is a model-view-controller system. The Model |
13 // responsible for holding and running the individual tests and providing a | 13 // responsible for holding and running the individual tests and providing a |
14 // uniform interface for querying the outcome. | 14 // uniform interface for querying the outcome. |
15 // TODO(cpu): The view and the controller are not yet built. | 15 // TODO(cpu): The view and the controller are not yet built. |
16 class DiagnosticsModel { | 16 class DiagnosticsModel { |
17 public: | 17 public: |
18 // A particular test can be in one of the following states. | 18 // A particular test can be in one of the following states. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // returned object. | 68 // returned object. |
69 virtual TestInfo& GetTest(size_t id) = 0; | 69 virtual TestInfo& GetTest(size_t id) = 0; |
70 }; | 70 }; |
71 | 71 |
72 // The factory for the model. The main purpose is to hide the creation of | 72 // The factory for the model. The main purpose is to hide the creation of |
73 // different models for different platforms. | 73 // different models for different platforms. |
74 DiagnosticsModel* MakeDiagnosticsModel(const CommandLine& cmdline); | 74 DiagnosticsModel* MakeDiagnosticsModel(const CommandLine& cmdline); |
75 | 75 |
76 | 76 |
77 #endif // CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_MODEL_H_ | 77 #endif // CHROME_BROWSER_DIAGNOSTICS_DIAGNOSTICS_MODEL_H_ |
OLD | NEW |