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

Side by Side Diff: components/autofill/core/browser/autofill_client.h

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
12 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
13 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
14 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
15 #include "base/values.h" 16 #include "base/values.h"
16 #include "ui/base/window_open_disposition.h" 17 #include "ui/base/window_open_disposition.h"
17 #include "url/gurl.h" 18 #include "url/gurl.h"
18 19
20 class GURL;
19 class IdentityProvider; 21 class IdentityProvider;
22 class PrefService;
20 23
21 namespace content { 24 namespace content {
22 class RenderFrameHost; 25 class RenderFrameHost;
23 } 26 }
24 27
25 namespace gfx { 28 namespace gfx {
26 class Rect; 29 class Rect;
27 class RectF; 30 class RectF;
28 } 31 }
29 32
30 namespace rappor { 33 namespace rappor {
31 class RapporService; 34 class RapporService;
32 } 35 }
33 36
34 namespace sync_driver { 37 namespace syncer {
35 class SyncService; 38 class SyncService;
36 } 39 }
37 40
38 class GURL;
39 class PrefService;
40
41 namespace autofill { 41 namespace autofill {
42 42
43 class AutofillPopupDelegate; 43 class AutofillPopupDelegate;
44 class AutofillWebDataService; 44 class AutofillWebDataService;
45 class CardUnmaskDelegate; 45 class CardUnmaskDelegate;
46 class CreditCard; 46 class CreditCard;
47 class FormStructure; 47 class FormStructure;
48 class PersonalDataManager; 48 class PersonalDataManager;
49 struct FormData; 49 struct FormData;
50 struct Suggestion; 50 struct Suggestion;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Gets the PersonalDataManager instance associated with the client. 93 // Gets the PersonalDataManager instance associated with the client.
94 virtual PersonalDataManager* GetPersonalDataManager() = 0; 94 virtual PersonalDataManager* GetPersonalDataManager() = 0;
95 95
96 // Gets the AutofillWebDataService instance associated with the client. 96 // Gets the AutofillWebDataService instance associated with the client.
97 virtual scoped_refptr<AutofillWebDataService> GetDatabase() = 0; 97 virtual scoped_refptr<AutofillWebDataService> GetDatabase() = 0;
98 98
99 // Gets the preferences associated with the client. 99 // Gets the preferences associated with the client.
100 virtual PrefService* GetPrefs() = 0; 100 virtual PrefService* GetPrefs() = 0;
101 101
102 // Gets the sync service associated with the client. 102 // Gets the sync service associated with the client.
103 virtual sync_driver::SyncService* GetSyncService() = 0; 103 virtual syncer::SyncService* GetSyncService() = 0;
104 104
105 // Gets the IdentityProvider associated with the client (for OAuth2). 105 // Gets the IdentityProvider associated with the client (for OAuth2).
106 virtual IdentityProvider* GetIdentityProvider() = 0; 106 virtual IdentityProvider* GetIdentityProvider() = 0;
107 107
108 // Gets the RapporService associated with the client (for metrics). 108 // Gets the RapporService associated with the client (for metrics).
109 virtual rappor::RapporService* GetRapporService() = 0; 109 virtual rappor::RapporService* GetRapporService() = 0;
110 110
111 // Causes the Autofill settings UI to be shown. 111 // Causes the Autofill settings UI to be shown.
112 virtual void ShowAutofillSettings() = 0; 112 virtual void ShowAutofillSettings() = 0;
113 113
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 virtual bool ShouldShowSigninPromo() = 0; 189 virtual bool ShouldShowSigninPromo() = 0;
190 190
191 // Starts the signin flow. Should not be called if ShouldShowSigninPromo() 191 // Starts the signin flow. Should not be called if ShouldShowSigninPromo()
192 // returns false. 192 // returns false.
193 virtual void StartSigninFlow() = 0; 193 virtual void StartSigninFlow() = 0;
194 }; 194 };
195 195
196 } // namespace autofill 196 } // namespace autofill
197 197
198 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 198 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_internals_ui.cc ('k') | components/autofill/core/browser/autofill_experiments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698