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

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

Issue 17022009: Force set the new tab title in instant extended. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 months 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
OLDNEW
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_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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 friend class content::WebContentsUserData<SearchTabHelper>; 54 friend class content::WebContentsUserData<SearchTabHelper>;
55 55
56 explicit SearchTabHelper(content::WebContents* web_contents); 56 explicit SearchTabHelper(content::WebContents* web_contents);
57 57
58 // Overridden from content::NotificationObserver: 58 // Overridden from content::NotificationObserver:
59 virtual void Observe(int type, 59 virtual void Observe(int type,
60 const content::NotificationSource& source, 60 const content::NotificationSource& source,
61 const content::NotificationDetails& details) OVERRIDE; 61 const content::NotificationDetails& details) OVERRIDE;
62 62
63 // Overridden from contents::WebContentsObserver: 63 // Overridden from contents::WebContentsObserver:
64 virtual void DidNavigateMainFrame(
65 const content::LoadCommittedDetails& details,
66 const content::FrameNavigateParams& params) OVERRIDE;
64 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 67 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
65 68
66 // Sets the mode of the model based on the current URL of web_contents(). 69 // Sets the mode of the model based on the current URL of web_contents().
67 void UpdateMode(); 70 void UpdateMode();
68 71
69 // Handlers for SearchBox API to show and hide top bars (bookmark and info 72 // Handlers for SearchBox API to show and hide top bars (bookmark and info
70 // bars). 73 // bars).
71 void OnSearchBoxShowBars(int page_id); 74 void OnSearchBoxShowBars(int page_id);
72 void OnSearchBoxHideBars(int page_id); 75 void OnSearchBoxHideBars(int page_id);
73 76
(...skipping 12 matching lines...) Expand all
86 content::WebContents* web_contents_; 89 content::WebContents* web_contents_;
87 90
88 // Tracks the last set of most visited items sent to the InstantPage renderer. 91 // Tracks the last set of most visited items sent to the InstantPage renderer.
89 // Used to prevent sending duplicate IPC messages to the renderer. 92 // Used to prevent sending duplicate IPC messages to the renderer.
90 std::vector<InstantMostVisitedItem> last_known_most_visited_items_; 93 std::vector<InstantMostVisitedItem> last_known_most_visited_items_;
91 94
92 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); 95 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper);
93 }; 96 };
94 97
95 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ 98 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_loader.cc ('k') | chrome/browser/ui/search/search_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698