| 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 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void GetWebUIMessageHandlers( | 73 virtual void GetWebUIMessageHandlers( |
| 74 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; | 74 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 75 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 75 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 76 virtual std::string GetDialogArgs() const OVERRIDE; | 76 virtual std::string GetDialogArgs() const OVERRIDE; |
| 77 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 77 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 78 virtual void OnCloseContents(content::WebContents* source, | 78 virtual void OnCloseContents(content::WebContents* source, |
| 79 bool* out_close_dialog) OVERRIDE; | 79 bool* out_close_dialog) OVERRIDE; |
| 80 virtual string16 GetDialogTitle() const OVERRIDE; | 80 virtual string16 GetDialogTitle() const OVERRIDE; |
| 81 virtual ui::ModalType GetDialogModalType() const OVERRIDE; | 81 virtual ui::ModalType GetDialogModalType() const OVERRIDE; |
| 82 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 82 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 83 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 83 virtual bool HandleContextMenu( |
| 84 const content::ContextMenuParams& params) OVERRIDE; |
| 84 | 85 |
| 85 // GaiaAuthConsumer implementation. | 86 // GaiaAuthConsumer implementation. |
| 86 virtual void OnClientLoginSuccess( | 87 virtual void OnClientLoginSuccess( |
| 87 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE; | 88 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE; |
| 88 virtual void OnClientLoginFailure( | 89 virtual void OnClientLoginFailure( |
| 89 const GoogleServiceAuthError& error) OVERRIDE; | 90 const GoogleServiceAuthError& error) OVERRIDE; |
| 90 | 91 |
| 91 private: | 92 private: |
| 92 friend class CloudPrintServiceProcessHelper; | 93 friend class CloudPrintServiceProcessHelper; |
| 93 friend class CloudPrintSetupMessageHandler; | 94 friend class CloudPrintSetupMessageHandler; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 bool setup_done_; | 143 bool setup_done_; |
| 143 | 144 |
| 144 // Handle to the ServiceProcessControl which talks to the service process. | 145 // Handle to the ServiceProcessControl which talks to the service process. |
| 145 ServiceProcessControl* process_control_; | 146 ServiceProcessControl* process_control_; |
| 146 base::WeakPtr<Delegate> delegate_; | 147 base::WeakPtr<Delegate> delegate_; |
| 147 | 148 |
| 148 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); | 149 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ | 152 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ |
| OLD | NEW |