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

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

Issue 1006753003: Add time from navigation_start to NTP LogEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/time/time.h"
13 #include "chrome/browser/search/instant_service_observer.h" 14 #include "chrome/browser/search/instant_service_observer.h"
14 #include "chrome/browser/ui/search/search_ipc_router.h" 15 #include "chrome/browser/ui/search/search_ipc_router.h"
15 #include "chrome/browser/ui/search/search_model.h" 16 #include "chrome/browser/ui/search/search_model.h"
16 #include "chrome/common/instant_types.h" 17 #include "chrome/common/instant_types.h"
17 #include "chrome/common/ntp_logging_events.h" 18 #include "chrome/common/ntp_logging_events.h"
18 #include "chrome/common/omnibox_focus_state.h" 19 #include "chrome/common/omnibox_focus_state.h"
19 #include "content/public/browser/web_contents_observer.h" 20 #include "content/public/browser/web_contents_observer.h"
20 #include "content/public/browser/web_contents_user_data.h" 21 #include "content/public/browser/web_contents_user_data.h"
21 #include "ui/base/window_open_disposition.h" 22 #include "ui/base/window_open_disposition.h"
22 23
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Overridden from SearchIPCRouter::Delegate: 165 // Overridden from SearchIPCRouter::Delegate:
165 void OnInstantSupportDetermined(bool supports_instant) override; 166 void OnInstantSupportDetermined(bool supports_instant) override;
166 void OnSetVoiceSearchSupport(bool supports_voice_search) override; 167 void OnSetVoiceSearchSupport(bool supports_voice_search) override;
167 void FocusOmnibox(OmniboxFocusState state) override; 168 void FocusOmnibox(OmniboxFocusState state) override;
168 void NavigateToURL(const GURL& url, 169 void NavigateToURL(const GURL& url,
169 WindowOpenDisposition disposition, 170 WindowOpenDisposition disposition,
170 bool is_most_visited_item_url) override; 171 bool is_most_visited_item_url) override;
171 void OnDeleteMostVisitedItem(const GURL& url) override; 172 void OnDeleteMostVisitedItem(const GURL& url) override;
172 void OnUndoMostVisitedDeletion(const GURL& url) override; 173 void OnUndoMostVisitedDeletion(const GURL& url) override;
173 void OnUndoAllMostVisitedDeletions() override; 174 void OnUndoAllMostVisitedDeletions() override;
174 void OnLogEvent(NTPLoggingEventType event) override; 175 void OnLogEvent(NTPLoggingEventType event, base::TimeDelta time) override;
175 void OnLogMostVisitedImpression(int position, 176 void OnLogMostVisitedImpression(int position,
176 const base::string16& provider) override; 177 const base::string16& provider) override;
177 void OnLogMostVisitedNavigation(int position, 178 void OnLogMostVisitedNavigation(int position,
178 const base::string16& provider) override; 179 const base::string16& provider) override;
179 void PasteIntoOmnibox(const base::string16& text) override; 180 void PasteIntoOmnibox(const base::string16& text) override;
180 void OnChromeIdentityCheck(const base::string16& identity) override; 181 void OnChromeIdentityCheck(const base::string16& identity) override;
181 void OnHistorySyncCheck() override; 182 void OnHistorySyncCheck() override;
182 183
183 // Overridden from InstantServiceObserver: 184 // Overridden from InstantServiceObserver:
184 void ThemeInfoChanged(const ThemeBackgroundInfo& theme_info) override; 185 void ThemeInfoChanged(const ThemeBackgroundInfo& theme_info) override;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 SearchTabHelperDelegate* delegate_; 234 SearchTabHelperDelegate* delegate_;
234 235
235 // Function to check if the omnibox has focus. Tests use this to modify the 236 // Function to check if the omnibox has focus. Tests use this to modify the
236 // default behavior. 237 // default behavior.
237 OmniboxHasFocusFn omnibox_has_focus_fn_; 238 OmniboxHasFocusFn omnibox_has_focus_fn_;
238 239
239 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); 240 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper);
240 }; 241 };
241 242
242 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ 243 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/search_ipc_router_unittest.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