OLD | NEW |
---|---|
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_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/string16.h" | |
13 | |
12 class TemplateURL; | 14 class TemplateURL; |
13 class TemplateURLService; | 15 class TemplateURLService; |
14 | 16 |
15 typedef std::map<std::string, const TemplateURL*> GUIDToTURLMap; | 17 typedef std::map<std::string, const TemplateURL*> GUIDToTURLMap; |
16 | 18 |
17 namespace search_engines_helper { | 19 namespace search_engines_helper { |
18 | 20 |
19 // Used to access the search engines within a particular sync profile. | 21 // Used to access the search engines within a particular sync profile. |
20 TemplateURLService* GetServiceForProfile(int index); | 22 TemplateURLService* GetServiceForProfile(int index); |
21 | 23 |
(...skipping 30 matching lines...) Expand all Loading... | |
52 // keyword |keyword| and changes its user-visible fields. Does the same to the | 54 // keyword |keyword| and changes its user-visible fields. Does the same to the |
53 // verifier, if it is used. | 55 // verifier, if it is used. |
54 void EditSearchEngine(int profile, | 56 void EditSearchEngine(int profile, |
55 const std::string& keyword, | 57 const std::string& keyword, |
56 const std::string& short_name, | 58 const std::string& short_name, |
57 const std::string& new_keyword, | 59 const std::string& new_keyword, |
58 const std::string& url); | 60 const std::string& url); |
59 | 61 |
60 // Deletes a search engine from the service at index |profile| with original | 62 // Deletes a search engine from the service at index |profile| with original |
61 // keyword |keyword|. Does the same to the verifier, if it is used. | 63 // keyword |keyword|. Does the same to the verifier, if it is used. |
62 void DeleteSearchEngine(int profile, const std::string& keyword); | 64 void DeleteSearchEngine(int profile, const string16 keyword); |
Raghu Simha
2011/11/07 22:18:12
Optional: Since you've added DeleteSearchEngineByS
SteveT
2011/11/08 00:17:27
Sure, that's definitely more clear. Done here, in
| |
65 | |
66 // Deletes a search engine from the service at index |profile| which was | |
67 // generated by seed |seed|. | |
68 void DeleteSearchEngineBySeed(int profile, int seed); | |
69 | |
70 // Change the search engine generated with |seed| in service at index |profile| | |
71 // to be the new default. Does the same to the verifier, if it is used. | |
72 void ChangeDefaultSearchProvider(int profile, int seed); | |
63 | 73 |
64 } // namespace search_engines_helper | 74 } // namespace search_engines_helper |
65 | 75 |
66 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ | 76 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ |
OLD | NEW |