OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // HtmlDialogUIDelegate implementation. | 63 // HtmlDialogUIDelegate implementation. |
64 virtual GURL GetDialogContentURL() const; | 64 virtual GURL GetDialogContentURL() const; |
65 virtual void GetDOMMessageHandlers( | 65 virtual void GetDOMMessageHandlers( |
66 std::vector<DOMMessageHandler*>* handlers) const; | 66 std::vector<DOMMessageHandler*>* handlers) const; |
67 virtual void GetDialogSize(gfx::Size* size) const; | 67 virtual void GetDialogSize(gfx::Size* size) const; |
68 virtual std::string GetDialogArgs() const; | 68 virtual std::string GetDialogArgs() const; |
69 virtual void OnDialogClosed(const std::string& json_retval); | 69 virtual void OnDialogClosed(const std::string& json_retval); |
70 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); | 70 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); |
71 virtual std::wstring GetDialogTitle() const; | 71 virtual std::wstring GetDialogTitle() const; |
72 virtual bool IsDialogModal() const; | 72 virtual bool IsDialogModal() const; |
73 virtual bool ShouldShowDialogTitle() const { return true; } | 73 virtual bool ShouldShowDialogTitle() const; |
74 | 74 |
75 // GaiaAuthConsumer implementation. | 75 // GaiaAuthConsumer implementation. |
76 virtual void OnClientLoginFailure( | 76 virtual void OnClientLoginFailure( |
77 const GoogleServiceAuthError& error); | 77 const GoogleServiceAuthError& error); |
78 virtual void OnClientLoginSuccess( | 78 virtual void OnClientLoginSuccess( |
79 const GaiaAuthConsumer::ClientLoginResult& credentials); | 79 const GaiaAuthConsumer::ClientLoginResult& credentials); |
80 | 80 |
81 private: | 81 private: |
82 friend class CloudPrintServiceProcessHelper; | 82 friend class CloudPrintServiceProcessHelper; |
83 friend class CloudPrintSetupMessageHandler; | 83 friend class CloudPrintSetupMessageHandler; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 bool setup_done_; | 127 bool setup_done_; |
128 | 128 |
129 // Handle to the ServiceProcessControl which talks to the service process. | 129 // Handle to the ServiceProcessControl which talks to the service process. |
130 ServiceProcessControl* process_control_; | 130 ServiceProcessControl* process_control_; |
131 Delegate* delegate_; | 131 Delegate* delegate_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); | 133 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); |
134 }; | 134 }; |
135 | 135 |
136 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ | 136 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ |
OLD | NEW |