| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_UI_SEARCH_INSTANT_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 // Resets list of debug events. | 217 // Resets list of debug events. |
| 218 void ClearDebugEvents(); | 218 void ClearDebugEvents(); |
| 219 | 219 |
| 220 // Gets the Most Visited items info from InstantService and forwards them to | 220 // Gets the Most Visited items info from InstantService and forwards them to |
| 221 // the Instant page renderer via the appropriate InstantPage subclass. | 221 // the Instant page renderer via the appropriate InstantPage subclass. |
| 222 void UpdateMostVisitedItems(); | 222 void UpdateMostVisitedItems(); |
| 223 | 223 |
| 224 // Returns the correct Instant URL to use from the following possibilities: | 224 // Returns the correct Instant URL to use from the following possibilities: |
| 225 // o The default search engine's Instant URL | 225 // o The default search engine's Instant URL |
| 226 // o The --instant-url command line switch | |
| 227 // o The local page (see GetLocalInstantURL()) | 226 // o The local page (see GetLocalInstantURL()) |
| 228 // Returns empty string if no valid Instant URL is available (this is only | 227 // Returns empty string if no valid Instant URL is available (this is only |
| 229 // possible in non-extended mode where we don't have a local page fall-back). | 228 // possible in non-extended mode where we don't have a local page fall-back). |
| 230 virtual std::string GetInstantURL() const; | 229 virtual std::string GetInstantURL() const; |
| 231 | 230 |
| 232 // See comments for |debug_events_| below. | 231 // See comments for |debug_events_| below. |
| 233 const std::list<std::pair<int64, std::string> >& debug_events() { | 232 const std::list<std::pair<int64, std::string> >& debug_events() { |
| 234 return debug_events_; | 233 return debug_events_; |
| 235 } | 234 } |
| 236 | 235 |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false. | 542 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false. |
| 544 bool allow_overlay_to_show_search_suggestions_; | 543 bool allow_overlay_to_show_search_suggestions_; |
| 545 | 544 |
| 546 // List of events and their timestamps, useful in debugging Instant behaviour. | 545 // List of events and their timestamps, useful in debugging Instant behaviour. |
| 547 mutable std::list<std::pair<int64, std::string> > debug_events_; | 546 mutable std::list<std::pair<int64, std::string> > debug_events_; |
| 548 | 547 |
| 549 DISALLOW_COPY_AND_ASSIGN(InstantController); | 548 DISALLOW_COPY_AND_ASSIGN(InstantController); |
| 550 }; | 549 }; |
| 551 | 550 |
| 552 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ | 551 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
| OLD | NEW |