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

Side by Side Diff: chrome/browser/search_engines/template_url_service.h

Issue 229763005: Store default search provider data in dictionary pref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Eriks comments and clean up Created 6 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/callback_list.h" 14 #include "base/callback_list.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/observer_list.h" 17 #include "base/observer_list.h"
18 #include "base/prefs/pref_change_registrar.h" 18 #include "base/prefs/pref_change_registrar.h"
19 #include "chrome/browser/search_engines/default_search_manager.h"
19 #include "chrome/browser/search_engines/template_url_id.h" 20 #include "chrome/browser/search_engines/template_url_id.h"
20 #include "chrome/browser/webdata/web_data_service.h" 21 #include "chrome/browser/webdata/web_data_service.h"
21 #include "components/keyed_service/core/keyed_service.h" 22 #include "components/keyed_service/core/keyed_service.h"
22 #include "content/public/browser/notification_observer.h" 23 #include "content/public/browser/notification_observer.h"
23 #include "content/public/browser/notification_registrar.h" 24 #include "content/public/browser/notification_registrar.h"
24 #include "sync/api/sync_change.h" 25 #include "sync/api/sync_change.h"
25 #include "sync/api/syncable_service.h" 26 #include "sync/api/syncable_service.h"
26 27
27 class GURL; 28 class GURL;
28 class PrefService; 29 class PrefService;
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 std::set<std::string> pre_sync_deletes_; 770 std::set<std::string> pre_sync_deletes_;
770 771
771 // This is used to log the origin of changes to the default search provider. 772 // This is used to log the origin of changes to the default search provider.
772 // We set this value to increasingly specific values when we know what is the 773 // We set this value to increasingly specific values when we know what is the
773 // cause/origin of a default search change. 774 // cause/origin of a default search change.
774 DefaultSearchChangeOrigin dsp_change_origin_; 775 DefaultSearchChangeOrigin dsp_change_origin_;
775 776
776 // Stores a list of callbacks to be run after TemplateURLService has loaded. 777 // Stores a list of callbacks to be run after TemplateURLService has loaded.
777 base::CallbackList<void(void)> on_loaded_callbacks_; 778 base::CallbackList<void(void)> on_loaded_callbacks_;
778 779
780 scoped_ptr<DefaultSearchManager> default_search_manager_;
Peter Kasting 2014/04/23 20:41:06 Why is this a scoped_ptr<> instead of a straight d
Cait (Slow) 2014/04/23 23:26:55 TemplateURLService may be initialized with a NULL
781
779 DISALLOW_COPY_AND_ASSIGN(TemplateURLService); 782 DISALLOW_COPY_AND_ASSIGN(TemplateURLService);
780 }; 783 };
781 784
782 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_ 785 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698