| OLD | NEW |
| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // The search provider is not installed. | 34 // The search provider is not installed. |
| 35 NOT_INSTALLED = 0, | 35 NOT_INSTALLED = 0, |
| 36 | 36 |
| 37 // The search provider is in the user's set but is not | 37 // The search provider is in the user's set but is not |
| 38 INSTALLED_BUT_NOT_DEFAULT = 1, | 38 INSTALLED_BUT_NOT_DEFAULT = 1, |
| 39 | 39 |
| 40 // The search provider is set as the user's default. | 40 // The search provider is set as the user's default. |
| 41 INSTALLED_AS_DEFAULT = 2 | 41 INSTALLED_AS_DEFAULT = 2 |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 // |ui_death_notification| and |ui_death_source| indentify a notification that | 44 // |ui_death_notification| and |ui_death_source| identify a notification that |
| 45 // may be observed on the UI thread to know when this class no longer needs to | 45 // may be observed on the UI thread to know when this class no longer needs to |
| 46 // be kept up to date. (Note that this class may be deleted before or after | 46 // be kept up to date. (Note that this class may be deleted before or after |
| 47 // that notification occurs. It doesn't matter.) | 47 // that notification occurs. It doesn't matter.) |
| 48 SearchProviderInstallData(Profile* profile, | 48 SearchProviderInstallData(Profile* profile, |
| 49 int ui_death_notification, | 49 int ui_death_notification, |
| 50 const content::NotificationSource& ui_death_source); | 50 const content::NotificationSource& ui_death_source); |
| 51 virtual ~SearchProviderInstallData(); | 51 virtual ~SearchProviderInstallData(); |
| 52 | 52 |
| 53 // Use to determine when the search provider information is loaded. The | 53 // Use to determine when the search provider information is loaded. The |
| 54 // callback may happen synchronously or asynchronously. There is no need to do | 54 // callback may happen synchronously or asynchronously. There is no need to do |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // The security origin for the default search provider. | 101 // The security origin for the default search provider. |
| 102 std::string default_search_origin_; | 102 std::string default_search_origin_; |
| 103 | 103 |
| 104 // The google base url. | 104 // The google base url. |
| 105 std::string google_base_url_; | 105 std::string google_base_url_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallData); | 107 DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallData); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_DATA_H_ | 110 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_DATA_H_ |
| OLD | NEW |