Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ |
| 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ | 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "chrome/browser/ui/webui/web_dialog_delegate.h" | 13 #include "ui/web_dialogs/web_dialog_delegate.h" |
|
mazda
2012/05/04 05:01:38
Please sort headers alphabetically.
You can do it
jakesays
2012/05/04 05:10:54
just an FYI, but I can't get sort-headers.py to wo
| |
| 14 #include "ui/web_dialogs/web_dialog_ui.h" | |
| 14 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 15 #include "chrome/common/net/gaia/gaia_auth_consumer.h" |
| 15 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" | 16 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" |
| 16 #include "chrome/common/net/gaia/google_service_auth_error.h" | 17 #include "chrome/common/net/gaia/google_service_auth_error.h" |
| 17 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
| 19 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
| 20 | 21 |
| 21 class CloudPrintServiceProcessHelper; | 22 class CloudPrintServiceProcessHelper; |
| 22 class CloudPrintSetupMessageHandler; | 23 class CloudPrintSetupMessageHandler; |
| 23 class GaiaAuthFetcher; | 24 class GaiaAuthFetcher; |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 42 // 2. Providing the URL for the content of the dialog. | 43 // 2. Providing the URL for the content of the dialog. |
| 43 // 3. Providing a data source to provide the content HTML files. | 44 // 3. Providing a data source to provide the content HTML files. |
| 44 // 4. Providing a message handler to handle user actions in the Web UI. | 45 // 4. Providing a message handler to handle user actions in the Web UI. |
| 45 // 5. Responding to actions received in the message handler. | 46 // 5. Responding to actions received in the message handler. |
| 46 // | 47 // |
| 47 // The architecture for WebUI is designed such that only the message handler | 48 // The architecture for WebUI is designed such that only the message handler |
| 48 // can access the WebUI. This splits the flow control across the message | 49 // can access the WebUI. This splits the flow control across the message |
| 49 // handler and this class. In order to centralize all the flow control and | 50 // handler and this class. In order to centralize all the flow control and |
| 50 // content in the WebUI, the WebUI object is given to this object by the | 51 // content in the WebUI, the WebUI object is given to this object by the |
| 51 // message handler through the Attach(WebUI*) method. | 52 // message handler through the Attach(WebUI*) method. |
| 52 class CloudPrintSetupFlow : public WebDialogDelegate, | 53 class CloudPrintSetupFlow : public web_dialogs::WebDialogDelegate, |
| 53 public GaiaAuthConsumer { | 54 public GaiaAuthConsumer { |
| 54 public: | 55 public: |
| 55 class Delegate { | 56 class Delegate { |
| 56 public: | 57 public: |
| 57 virtual ~Delegate() {} | 58 virtual ~Delegate() {} |
| 58 // Called when the setup dialog is closed. | 59 // Called when the setup dialog is closed. |
| 59 virtual void OnDialogClosed() = 0; | 60 virtual void OnDialogClosed() = 0; |
| 60 }; | 61 }; |
| 61 virtual ~CloudPrintSetupFlow(); | 62 virtual ~CloudPrintSetupFlow(); |
| 62 | 63 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 bool setup_done_; | 148 bool setup_done_; |
| 148 | 149 |
| 149 // Handle to the ServiceProcessControl which talks to the service process. | 150 // Handle to the ServiceProcessControl which talks to the service process. |
| 150 ServiceProcessControl* process_control_; | 151 ServiceProcessControl* process_control_; |
| 151 base::WeakPtr<Delegate> delegate_; | 152 base::WeakPtr<Delegate> delegate_; |
| 152 | 153 |
| 153 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); | 154 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ | 157 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ |
| OLD | NEW |