| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_ |
| 6 #define COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 static const char kSearchURLPostParams[]; | 46 static const char kSearchURLPostParams[]; |
| 47 static const char kSuggestionsURLPostParams[]; | 47 static const char kSuggestionsURLPostParams[]; |
| 48 static const char kInstantURLPostParams[]; | 48 static const char kInstantURLPostParams[]; |
| 49 static const char kImageURLPostParams[]; | 49 static const char kImageURLPostParams[]; |
| 50 | 50 |
| 51 static const char kSafeForAutoReplace[]; | 51 static const char kSafeForAutoReplace[]; |
| 52 static const char kInputEncodings[]; | 52 static const char kInputEncodings[]; |
| 53 | 53 |
| 54 static const char kDateCreated[]; | 54 static const char kDateCreated[]; |
| 55 static const char kLastModified[]; | 55 static const char kLastModified[]; |
| 56 static const char kLastVisited[]; |
| 56 | 57 |
| 57 static const char kUsageCount[]; | 58 static const char kUsageCount[]; |
| 58 static const char kAlternateURLs[]; | 59 static const char kAlternateURLs[]; |
| 59 static const char kSearchTermsReplacementKey[]; | 60 static const char kSearchTermsReplacementKey[]; |
| 60 static const char kCreatedByPolicy[]; | 61 static const char kCreatedByPolicy[]; |
| 61 static const char kDisabledByPolicy[]; | 62 static const char kDisabledByPolicy[]; |
| 62 | 63 |
| 63 enum Source { | 64 enum Source { |
| 64 FROM_FALLBACK = 0, | 65 FROM_FALLBACK = 0, |
| 65 FROM_USER, | 66 FROM_USER, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // prefs). This will be null if no value was set in the pref store. | 157 // prefs). This will be null if no value was set in the pref store. |
| 157 std::unique_ptr<TemplateURLData> prefs_default_search_; | 158 std::unique_ptr<TemplateURLData> prefs_default_search_; |
| 158 | 159 |
| 159 // True if the default search is currently enforced by policy. | 160 // True if the default search is currently enforced by policy. |
| 160 bool default_search_controlled_by_policy_; | 161 bool default_search_controlled_by_policy_; |
| 161 | 162 |
| 162 DISALLOW_COPY_AND_ASSIGN(DefaultSearchManager); | 163 DISALLOW_COPY_AND_ASSIGN(DefaultSearchManager); |
| 163 }; | 164 }; |
| 164 | 165 |
| 165 #endif // COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_ | 166 #endif // COMPONENTS_SEARCH_ENGINES_DEFAULT_SEARCH_MANAGER_H_ |
| OLD | NEW |