OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_DELEGATE_H_ |
6 #define CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_DELEGATE_H_ | 6 #define CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_DELEGATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // we are running a vanilla (non-branded) build. | 60 // we are running a vanilla (non-branded) build. |
61 virtual void RequestCallbackWhenBrandcodedDefaultsAreFetched( | 61 virtual void RequestCallbackWhenBrandcodedDefaultsAreFetched( |
62 const base::Closure& ready_callback) const = 0; | 62 const base::Closure& ready_callback) const = 0; |
63 | 63 |
64 // Returns a list of loaded module name digests. | 64 // Returns a list of loaded module name digests. |
65 virtual scoped_ptr<base::ListValue> GetLoadedModuleNameDigests() const = 0; | 65 virtual scoped_ptr<base::ListValue> GetLoadedModuleNameDigests() const = 0; |
66 | 66 |
67 // Returns attributes of the search engine currently set as the default (or | 67 // Returns attributes of the search engine currently set as the default (or |
68 // an empty dictionary if there is none). | 68 // an empty dictionary if there is none). |
69 // The returned attributes correspond in meaning and format to the user | 69 // The returned attributes correspond in meaning and format to the user |
70 // preferences stored by TemplateURLService::SaveDefaultSearchProviderToPrefs, | 70 // preferences stored by |
| 71 // TemplateURLService::SaveDefaultSearchProviderToLegacyPrefs, |
71 // and will be named after the second path name segment of the respective | 72 // and will be named after the second path name segment of the respective |
72 // preference (i.e. the part after "default_search_provider."). | 73 // preference (i.e. the part after "default_search_provider."). |
73 // Note that: | 74 // Note that: |
74 // 1.) the "enabled" attribute will not be present, as it is not technically | 75 // 1.) the "enabled" attribute will not be present, as it is not technically |
75 // an attribute of a search provider, | 76 // an attribute of a search provider, |
76 // 2.) "encodings" will be a list of strings, in contrast to a single string | 77 // 2.) "encodings" will be a list of strings, in contrast to a single string |
77 // with tokens delimited by semicolons, but the order will be the same. | 78 // with tokens delimited by semicolons, but the order will be the same. |
78 virtual scoped_ptr<base::DictionaryValue> | 79 virtual scoped_ptr<base::DictionaryValue> |
79 GetDefaultSearchProviderDetails() const = 0; | 80 GetDefaultSearchProviderDetails() const = 0; |
80 | 81 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 extensions::OneShotEvent template_url_service_ready_event_; | 212 extensions::OneShotEvent template_url_service_ready_event_; |
212 | 213 |
213 // This event is signaled once brandcoded default settings have been fetched, | 214 // This event is signaled once brandcoded default settings have been fetched, |
214 // or once it has been established that this is not a branded build. | 215 // or once it has been established that this is not a branded build. |
215 extensions::OneShotEvent brandcoded_defaults_fetched_event_; | 216 extensions::OneShotEvent brandcoded_defaults_fetched_event_; |
216 | 217 |
217 DISALLOW_COPY_AND_ASSIGN(AutomaticProfileResetterDelegateImpl); | 218 DISALLOW_COPY_AND_ASSIGN(AutomaticProfileResetterDelegateImpl); |
218 }; | 219 }; |
219 | 220 |
220 #endif // CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_DELEGATE_H
_ | 221 #endif // CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_DELEGATE_H
_ |
OLD | NEW |