| 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 CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ | 6 #define CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 std::vector<ResponseCallback> waiting_requestors_; | 124 std::vector<ResponseCallback> waiting_requestors_; |
| 125 | 125 |
| 126 // Used to obtain server thumbnails, if available. | 126 // Used to obtain server thumbnails, if available. |
| 127 scoped_ptr<ThumbnailManager> thumbnail_manager_; | 127 scoped_ptr<ThumbnailManager> thumbnail_manager_; |
| 128 | 128 |
| 129 Profile* profile_; | 129 Profile* profile_; |
| 130 | 130 |
| 131 // For callbacks may be run after destruction. | 131 // For callbacks may be run after destruction. |
| 132 base::WeakPtrFactory<SuggestionsService> weak_ptr_factory_; | 132 base::WeakPtrFactory<SuggestionsService> weak_ptr_factory_; |
| 133 | 133 |
| 134 // Timeout (in ms) before serving requestors after a fetch suggestions request |
| 135 // has been issued. |
| 136 int request_timeout_ms_; |
| 137 |
| 134 DISALLOW_COPY_AND_ASSIGN(SuggestionsService); | 138 DISALLOW_COPY_AND_ASSIGN(SuggestionsService); |
| 135 }; | 139 }; |
| 136 | 140 |
| 137 } // namespace suggestions | 141 } // namespace suggestions |
| 138 | 142 |
| 139 #endif // CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ | 143 #endif // CHROME_BROWSER_SEARCH_SUGGESTIONS_SUGGESTIONS_SERVICE_H_ |
| OLD | NEW |