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

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

Issue 280113002: Revert of Use the DefaultSearchManager as the exclusive authority on DSE, ignoring Web Data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/profile_resetter/automatic_profile_resetter_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dictionary is in the same format as persisted to preferences by 69 // The returned attributes correspond in meaning and format to the user
70 // DefaultSearchManager::SetUserSelectedDefaultSearchEngine. 70 // preferences stored by TemplateURLService::SaveDefaultSearchProviderToPrefs,
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.
71 virtual scoped_ptr<base::DictionaryValue> 78 virtual scoped_ptr<base::DictionaryValue>
72 GetDefaultSearchProviderDetails() const = 0; 79 GetDefaultSearchProviderDetails() const = 0;
73 80
74 // Returns whether or not the default search provider is set by policy. 81 // Returns whether or not the default search provider is set by policy.
75 virtual bool IsDefaultSearchProviderManaged() const = 0; 82 virtual bool IsDefaultSearchProviderManaged() const = 0;
76 83
77 // Returns a list of dictionaries, each containing attributes for each of the 84 // Returns a list of dictionaries, each containing attributes for each of the
78 // pre-populated search engines, in the format described above. 85 // pre-populated search engines, in the format described above.
79 virtual scoped_ptr<base::ListValue> 86 virtual scoped_ptr<base::ListValue>
80 GetPrepopulatedSearchProvidersDetails() const = 0; 87 GetPrepopulatedSearchProvidersDetails() const = 0;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 extensions::OneShotEvent template_url_service_ready_event_; 211 extensions::OneShotEvent template_url_service_ready_event_;
205 212
206 // This event is signaled once brandcoded default settings have been fetched, 213 // This event is signaled once brandcoded default settings have been fetched,
207 // or once it has been established that this is not a branded build. 214 // or once it has been established that this is not a branded build.
208 extensions::OneShotEvent brandcoded_defaults_fetched_event_; 215 extensions::OneShotEvent brandcoded_defaults_fetched_event_;
209 216
210 DISALLOW_COPY_AND_ASSIGN(AutomaticProfileResetterDelegateImpl); 217 DISALLOW_COPY_AND_ASSIGN(AutomaticProfileResetterDelegateImpl);
211 }; 218 };
212 219
213 #endif // CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_DELEGATE_H _ 220 #endif // CHROME_BROWSER_PROFILE_RESETTER_AUTOMATIC_PROFILE_RESETTER_DELEGATE_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profile_resetter/automatic_profile_resetter_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698