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

Side by Side Diff: chrome/browser/profile_resetter/automatic_profile_resetter_delegate.h

Issue 268643002: Use the DefaultSearchManager as the exclusive authority on DSE, ignoring Web Data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments. Created 6 years, 7 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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // default settings have been downloaded, or once it has been established that 59 // default settings have been downloaded, or once it has been established that
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 dictionary is in the same format as persisted to preferences by
70 // preferences stored by TemplateURLService::SaveDefaultSearchProviderToPrefs, 70 // DefaultSearchManager::SetUserSelectedDefaultSearchEngine.
71 // and will be named after the second path name segment of the respective
72 // preference (i.e. the part after "default_search_provider.").
73 // Note that:
74 // 1.) the "enabled" attribute will not be present, as it is not technically
75 // an attribute of a search provider,
76 // 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 virtual scoped_ptr<base::DictionaryValue> 71 virtual scoped_ptr<base::DictionaryValue>
79 GetDefaultSearchProviderDetails() const = 0; 72 GetDefaultSearchProviderDetails() const = 0;
80 73
81 // Returns whether or not the default search provider is set by policy. 74 // Returns whether or not the default search provider is set by policy.
82 virtual bool IsDefaultSearchProviderManaged() const = 0; 75 virtual bool IsDefaultSearchProviderManaged() const = 0;
83 76
84 // Returns a list of dictionaries, each containing attributes for each of the 77 // Returns a list of dictionaries, each containing attributes for each of the
85 // pre-populated search engines, in the format described above. 78 // pre-populated search engines, in the format described above.
86 virtual scoped_ptr<base::ListValue> 79 virtual scoped_ptr<base::ListValue>
87 GetPrepopulatedSearchProvidersDetails() const = 0; 80 GetPrepopulatedSearchProvidersDetails() const = 0;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 extensions::OneShotEvent template_url_service_ready_event_; 204 extensions::OneShotEvent template_url_service_ready_event_;
212 205
213 // This event is signaled once brandcoded default settings have been fetched, 206 // 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. 207 // or once it has been established that this is not a branded build.
215 extensions::OneShotEvent brandcoded_defaults_fetched_event_; 208 extensions::OneShotEvent brandcoded_defaults_fetched_event_;
216 209
217 DISALLOW_COPY_AND_ASSIGN(AutomaticProfileResetterDelegateImpl); 210 DISALLOW_COPY_AND_ASSIGN(AutomaticProfileResetterDelegateImpl);
218 }; 211 };
219 212
220 #endif // CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_DELEGATE_H _ 213 #endif // CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_DELEGATE_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698