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_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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 State GetInstallState(const GURL& requested_origin); | 62 State GetInstallState(const GURL& requested_origin); |
63 | 63 |
64 // Called when the google base url has changed. | 64 // Called when the google base url has changed. |
65 void OnGoogleURLChange(const std::string& google_base_url); | 65 void OnGoogleURLChange(const std::string& google_base_url); |
66 | 66 |
67 private: | 67 private: |
68 // WebDataServiceConsumer | 68 // WebDataServiceConsumer |
69 // Notification that the keywords have been loaded. | 69 // Notification that the keywords have been loaded. |
70 // This is invoked from WebDataService, and should not be directly | 70 // This is invoked from WebDataService, and should not be directly |
71 // invoked. | 71 // invoked. |
72 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, | 72 virtual void OnWebDataServiceRequestDone( |
73 const WDTypedResult* result); | 73 WebDataService::Handle h, |
| 74 const WDTypedResult* result) OVERRIDE; |
74 | 75 |
75 // Stores information about the default search provider. | 76 // Stores information about the default search provider. |
76 void SetDefault(const TemplateURL* template_url); | 77 void SetDefault(const TemplateURL* template_url); |
77 | 78 |
78 // Sets up the loaded state and then lets clients know that the search | 79 // Sets up the loaded state and then lets clients know that the search |
79 // provider install state has been loaded. | 80 // provider install state has been loaded. |
80 void OnLoadFailed(); | 81 void OnLoadFailed(); |
81 | 82 |
82 // Does notifications to let clients know that the search provider | 83 // Does notifications to let clients know that the search provider |
83 // install state has been loaded. | 84 // install state has been loaded. |
(...skipping 17 matching lines...) Expand all Loading... |
101 // The security origin for the default search provider. | 102 // The security origin for the default search provider. |
102 std::string default_search_origin_; | 103 std::string default_search_origin_; |
103 | 104 |
104 // The google base url. | 105 // The google base url. |
105 std::string google_base_url_; | 106 std::string google_base_url_; |
106 | 107 |
107 DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallData); | 108 DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallData); |
108 }; | 109 }; |
109 | 110 |
110 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_DATA_H_ | 111 #endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_DATA_H_ |
OLD | NEW |