| 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_REMOTING_SETUP_FLOW_H_ | 5 #ifndef CHROME_BROWSER_REMOTING_SETUP_FLOW_H_ |
| 6 #define CHROME_BROWSER_REMOTING_SETUP_FLOW_H_ | 6 #define CHROME_BROWSER_REMOTING_SETUP_FLOW_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 10 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 public: | 114 public: |
| 115 SetupFlowDoneStep(); | 115 SetupFlowDoneStep(); |
| 116 explicit SetupFlowDoneStep(const string16& message); | 116 explicit SetupFlowDoneStep(const string16& message); |
| 117 virtual ~SetupFlowDoneStep(); | 117 virtual ~SetupFlowDoneStep(); |
| 118 | 118 |
| 119 // SetupFlowStep implementation. | 119 // SetupFlowStep implementation. |
| 120 virtual void HandleMessage(const std::string& message, const Value* arg); | 120 virtual void HandleMessage(const std::string& message, const Value* arg); |
| 121 virtual void Cancel(); | 121 virtual void Cancel(); |
| 122 | 122 |
| 123 protected: | 123 protected: |
| 124 void DoStart(); | 124 virtual void DoStart(); |
| 125 | 125 |
| 126 private: | 126 private: |
| 127 string16 message_; | 127 string16 message_; |
| 128 | 128 |
| 129 DISALLOW_COPY_AND_ASSIGN(SetupFlowDoneStep); | 129 DISALLOW_COPY_AND_ASSIGN(SetupFlowDoneStep); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 // SetupFlowContext stores data that needs to be passed between | 132 // SetupFlowContext stores data that needs to be passed between |
| 133 // different setup flow steps. | 133 // different setup flow steps. |
| 134 struct SetupFlowContext { | 134 struct SetupFlowContext { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 SetupFlowContext context_; | 210 SetupFlowContext context_; |
| 211 | 211 |
| 212 scoped_ptr<SetupFlowStep> current_step_; | 212 scoped_ptr<SetupFlowStep> current_step_; |
| 213 | 213 |
| 214 DISALLOW_COPY_AND_ASSIGN(SetupFlow); | 214 DISALLOW_COPY_AND_ASSIGN(SetupFlow); |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 } // namespace remoting | 217 } // namespace remoting |
| 218 | 218 |
| 219 #endif // CHROME_BROWSER_REMOTING_SETUP_FLOW_H_ | 219 #endif // CHROME_BROWSER_REMOTING_SETUP_FLOW_H_ |
| OLD | NEW |