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