Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: chrome/browser/sync/sync_setup_flow.h

Issue 7193031: Move UI specific implementation from ProfileSyncService to SyncSetupFlowHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_SYNC_SYNC_SETUP_FLOW_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_
6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ 6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // if a handler has already been attached. 65 // if a handler has already been attached.
66 bool AttachSyncSetupHandler(SyncSetupFlowHandler* handler); 66 bool AttachSyncSetupHandler(SyncSetupFlowHandler* handler);
67 67
68 // Triggers a state machine transition to advance_state. 68 // Triggers a state machine transition to advance_state.
69 void Advance(SyncSetupWizard::State advance_state); 69 void Advance(SyncSetupWizard::State advance_state);
70 70
71 // Focuses the dialog. This is useful in cases where the dialog has been 71 // Focuses the dialog. This is useful in cases where the dialog has been
72 // obscured by a browser window. 72 // obscured by a browser window.
73 void Focus(); 73 void Focus();
74 74
75 // Show the sync setup tab.
76 void ShowSyncSetup();
Andrew T Wilson (Slow) 2011/07/07 17:44:23 See previous comment about passing the new state i
77
75 void OnUserSubmittedAuth(const std::string& username, 78 void OnUserSubmittedAuth(const std::string& username,
76 const std::string& password, 79 const std::string& password,
77 const std::string& captcha, 80 const std::string& captcha,
78 const std::string& access_code); 81 const std::string& access_code);
79 82
80 void OnUserConfigured(const SyncConfiguration& configuration); 83 void OnUserConfigured(const SyncConfiguration& configuration);
81 84
82 // The 'passphrase' screen is used when the user is prompted to enter 85 // The 'passphrase' screen is used when the user is prompted to enter
83 // an existing passphrase. 86 // an existing passphrase.
84 void OnPassphraseEntry(const std::string& passphrase); 87 void OnPassphraseEntry(const std::string& passphrase);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 } 154 }
152 155
153 SyncSetupFlow* get_flow() { return flow_; } 156 SyncSetupFlow* get_flow() { return flow_; }
154 private: 157 private:
155 SyncSetupFlow* flow_; 158 SyncSetupFlow* flow_;
156 159
157 DISALLOW_COPY_AND_ASSIGN(SyncSetupFlowContainer); 160 DISALLOW_COPY_AND_ASSIGN(SyncSetupFlowContainer);
158 }; 161 };
159 162
160 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ 163 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698