Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Side by Side Diff: chrome/browser/ui/search/search_tab_helper.h

Issue 11421079: Persist the Instant API to committed search result pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 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_SEARCH_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/ui/search/search_model.h" 9 #include "chrome/browser/ui/search/search_model.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
11 #include "content/public/browser/notification_registrar.h" 11 #include "content/public/browser/notification_registrar.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // navigation and used for the mode change on the |model_|. 61 // navigation and used for the mode change on the |model_|.
62 void UpdateModelBasedOnURL(const GURL& url, bool animate); 62 void UpdateModelBasedOnURL(const GURL& url, bool animate);
63 63
64 // Returns the web contents associated with the tab that owns this helper. 64 // Returns the web contents associated with the tab that owns this helper.
65 const content::WebContents* web_contents() const; 65 const content::WebContents* web_contents() const;
66 66
67 const bool is_search_enabled_; 67 const bool is_search_enabled_;
68 68
69 bool is_initial_navigation_commit_; 69 bool is_initial_navigation_commit_;
70 70
71 // Tracks the last value passed to OmniboxEditModelChanged().
72 bool user_input_in_progress_;
73
71 // Model object for UI that cares about search state. 74 // Model object for UI that cares about search state.
72 SearchModel model_; 75 SearchModel model_;
73 76
74 content::NotificationRegistrar registrar_; 77 content::NotificationRegistrar registrar_;
75 78
76 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); 79 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper);
77 }; 80 };
78 81
79 } // namespace search 82 } // namespace search
80 } // namespace chrome 83 } // namespace chrome
81 84
82 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ 85 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698