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

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

Issue 9811022: Misc. small cleanups to minimize TemplateURL refactoring diffs: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SEARCH_PROVIDER_INSTALL_DATA_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_DATA_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_DATA_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 28 matching lines...) Expand all
39 INSTALLED_BUT_NOT_DEFAULT = 1, 39 INSTALLED_BUT_NOT_DEFAULT = 1,
40 40
41 // The search provider is set as the user's default. 41 // The search provider is set as the user's default.
42 INSTALLED_AS_DEFAULT = 2 42 INSTALLED_AS_DEFAULT = 2
43 }; 43 };
44 44
45 // |ui_death_notification| and |ui_death_source| indentify a notification that 45 // |ui_death_notification| and |ui_death_source| indentify a notification that
46 // may be observed on the UI thread to know when this class no longer needs to 46 // may be observed on the UI thread to know when this class no longer needs to
47 // be kept up to date. (Note that this class may be deleted before or after 47 // be kept up to date. (Note that this class may be deleted before or after
48 // that notification occurs. It doesn't matter.) 48 // that notification occurs. It doesn't matter.)
49 SearchProviderInstallData(WebDataService* web_service, 49 SearchProviderInstallData(Profile* profile,
sky 2012/03/22 00:29:07 I would prefer this to keep this taking a WDS. The
Peter Kasting 2012/03/22 18:54:26 The constructor here actually will need the Profil
50 int ui_death_notification, 50 int ui_death_notification,
51 const content::NotificationSource& ui_death_source); 51 const content::NotificationSource& ui_death_source);
52 virtual ~SearchProviderInstallData(); 52 virtual ~SearchProviderInstallData();
53 53
54 // Use to determine when the search provider information is loaded. The 54 // Use to determine when the search provider information is loaded. The
55 // callback may happen synchronously or asynchronously. There is no need to do 55 // callback may happen synchronously or asynchronously. There is no need to do
56 // anything special to make it function (as it just relies on the normal I/O 56 // anything special to make it function (as it just relies on the normal I/O
57 // thread message loop). 57 // thread message loop).
58 void CallWhenLoaded(const base::Closure& closure); 58 void CallWhenLoaded(const base::Closure& closure);
59 59
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // The security origin for the default search provider. 102 // The security origin for the default search provider.
103 std::string default_search_origin_; 103 std::string default_search_origin_;
104 104
105 // The google base url. 105 // The google base url.
106 std::string google_base_url_; 106 std::string google_base_url_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallData); 108 DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallData);
109 }; 109 };
110 110
111 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_DATA_H_ 111 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/google/google_url_tracker_unittest.cc ('k') | chrome/browser/search_engines/search_provider_install_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698