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

Side by Side Diff: chrome/browser/sync/sync_setup_flow_handler.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_HANDLER_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_HANDLER_H_
6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_HANDLER_H_ 6 #define CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 class DictionaryValue; 11 class DictionaryValue;
12 class Profile;
12 class SyncSetupFlow; 13 class SyncSetupFlow;
13 14
14 class SyncSetupFlowHandler { 15 class SyncSetupFlowHandler {
15 public: 16 public:
16 // These functions control which part of the HTML is visible. 17 // These functions control which part of the HTML is visible.
17 virtual void ShowGaiaLogin(const DictionaryValue& args) = 0; 18 virtual void ShowGaiaLogin(const DictionaryValue& args) = 0;
18 virtual void ShowGaiaSuccessAndClose() = 0; 19 virtual void ShowGaiaSuccessAndClose() = 0;
19 virtual void ShowGaiaSuccessAndSettingUp() = 0; 20 virtual void ShowGaiaSuccessAndSettingUp() = 0;
20 virtual void ShowConfigure(const DictionaryValue& args) = 0; 21 virtual void ShowConfigure(const DictionaryValue& args) = 0;
21 virtual void ShowPassphraseEntry(const DictionaryValue& args) = 0; 22 virtual void ShowPassphraseEntry(const DictionaryValue& args) = 0;
22 virtual void ShowSettingUp() = 0; 23 virtual void ShowSettingUp() = 0;
23 virtual void ShowSetupDone(const std::wstring& user) = 0; 24 virtual void ShowSetupDone(const std::wstring& user) = 0;
24 virtual void SetFlow(SyncSetupFlow* flow) = 0; 25 virtual void SetFlow(SyncSetupFlow* flow) = 0;
25 virtual void Focus() = 0; 26 virtual void Focus() = 0;
27 virtual void ShowSyncSetup(Profile* profile) = 0;
26 28
27 protected: 29 protected:
28 virtual ~SyncSetupFlowHandler() {} 30 virtual ~SyncSetupFlowHandler() {}
29 }; 31 };
30 32
31 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_HANDLER_H_ 33 #endif // CHROME_BROWSER_SYNC_SYNC_SETUP_FLOW_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698