Chromium Code Reviews| Index: chrome/browser/instant/instant_loader.h |
| diff --git a/chrome/browser/instant/instant_loader.h b/chrome/browser/instant/instant_loader.h |
| index 185d2ff53e9317c3b7838c66ac3adf826f2e5c61..869abf0104fd81aeef9819416a14003951385ad5 100644 |
| --- a/chrome/browser/instant/instant_loader.h |
| +++ b/chrome/browser/instant/instant_loader.h |
| @@ -82,6 +82,10 @@ class InstantLoader : public InstantClient::Delegate, |
| return last_navigation_; |
| } |
| + // Tells the loader that it is in fallback mode. |
| + void set_is_in_fallback_mode(bool value); |
| + bool is_in_fallback_mode() const { return is_in_fallback_mode_; } |
|
sreeram
2013/01/22 03:58:03
Do we really need this? Can't we just use IsUsingL
Shishir
2013/01/25 22:11:26
There are a couple of reasons why I think its bett
sreeram
2013/01/29 17:02:21
Re: 1, I don't see the need to distinguish the cas
Shishir
2013/01/29 20:06:31
As discussed, we want to keep the EnsureLoaderIsCu
|
| + |
| // Called by the history tab helper with information that it would have added |
| // to the history service had this WebContents not been used for Instant. |
| void DidNavigate(const history::HistoryAddPageArgs& add_page_args); |
| @@ -99,6 +103,7 @@ class InstantLoader : public InstantClient::Delegate, |
| void Cancel(const string16& text); |
| void SetPopupBounds(const gfx::Rect& bounds); |
| void SetMarginSize(int start, int end); |
| + void InitializeFonts(); |
|
sreeram
2013/01/22 03:58:03
I realize that the reason why this was being done
Shishir
2013/01/25 22:11:26
As we discussed, the font information will now alw
|
| void SendAutocompleteResults( |
| const std::vector<InstantAutocompleteResult>& results); |
| void UpOrDownKeyPressed(int count); |
| @@ -148,6 +153,10 @@ class InstantLoader : public InstantClient::Delegate, |
| bool is_pointer_down_from_activate_; |
| history::HistoryAddPageArgs last_navigation_; |
| + // Indicates if this loader is running as a fallback loader using the local |
| + // preview because the actual instant page was too slow to load. |
| + bool is_in_fallback_mode_; |
| + |
| // Used to get notifications about renderers coming and going. |
| content::NotificationRegistrar registrar_; |