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

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

Issue 7093004: Sync: Refactor the ProfileSyncService and sync setup flow to remove use of WebUI from PSS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix. Created 9 years, 6 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Fills |args| with "user" and "error" arguments by querying |service|. 54 // Fills |args| with "user" and "error" arguments by querying |service|.
55 static void GetArgsForGaiaLogin( 55 static void GetArgsForGaiaLogin(
56 const ProfileSyncService* service, 56 const ProfileSyncService* service,
57 DictionaryValue* args); 57 DictionaryValue* args);
58 58
59 // Fills |args| for the configure screen (Choose Data Types/Encryption) 59 // Fills |args| for the configure screen (Choose Data Types/Encryption)
60 static void GetArgsForConfigure( 60 static void GetArgsForConfigure(
61 ProfileSyncService* service, 61 ProfileSyncService* service,
62 DictionaryValue* args); 62 DictionaryValue* args);
63 63
64 // Fills |args| for the enter passphrase screen.
65 static void GetArgsForEnterPassphrase(
66 bool tried_creating_explicit_passphrase,
67 bool tried_setting_explicit_passphrase,
68 DictionaryValue* args);
69
70 void AttachSyncSetupHandler(SyncSetupFlowHandler* handler); 64 void AttachSyncSetupHandler(SyncSetupFlowHandler* handler);
71 65
72 // Triggers a state machine transition to advance_state. 66 // Triggers a state machine transition to advance_state.
73 void Advance(SyncSetupWizard::State advance_state); 67 void Advance(SyncSetupWizard::State advance_state);
74 68
75 // Focuses the dialog. This is useful in cases where the dialog has been 69 // Focuses the dialog. This is useful in cases where the dialog has been
76 // obscured by a browser window. 70 // obscured by a browser window.
77 void Focus(); 71 void Focus();
78 72
79 void OnUserSubmittedAuth(const std::string& username, 73 void OnUserSubmittedAuth(const std::string& username,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 150 }
157 151
158 SyncSetupFlow* get_flow() { return flow_; } 152 SyncSetupFlow* get_flow() { return flow_; }
159 private: 153 private:
160 SyncSetupFlow* flow_; 154 SyncSetupFlow* flow_;
161 155
162 DISALLOW_COPY_AND_ASSIGN(SyncSetupFlowContainer); 156 DISALLOW_COPY_AND_ASSIGN(SyncSetupFlowContainer);
163 }; 157 };
164 158
165 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_ 159 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698