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

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

Issue 2790463003: ntp_tiles: Cleanup enum names (Closed)
Patch Set: add back histogram enums Created 3 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_IPC_ROUTER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "chrome/common/instant.mojom.h" 14 #include "chrome/common/instant.mojom.h"
15 #include "chrome/common/search/instant_types.h" 15 #include "chrome/common/search/instant_types.h"
16 #include "chrome/common/search/ntp_logging_events.h" 16 #include "chrome/common/search/ntp_logging_events.h"
17 #include "components/ntp_tiles/ntp_tile_source.h" 17 #include "components/ntp_tiles/tile_source.h"
18 #include "components/omnibox/common/omnibox_focus_state.h" 18 #include "components/omnibox/common/omnibox_focus_state.h"
19 #include "content/public/browser/web_contents_binding_set.h" 19 #include "content/public/browser/web_contents_binding_set.h"
20 #include "content/public/browser/web_contents_observer.h" 20 #include "content/public/browser/web_contents_observer.h"
21 #include "ui/base/window_open_disposition.h" 21 #include "ui/base/window_open_disposition.h"
22 22
23 class GURL; 23 class GURL;
24 24
25 namespace content { 25 namespace content {
26 class WebContents; 26 class WebContents;
27 } 27 }
(...skipping 27 matching lines...) Expand all
55 virtual void OnUndoAllMostVisitedDeletions() = 0; 55 virtual void OnUndoAllMostVisitedDeletions() = 0;
56 56
57 // Called to signal that an event has occurred on the New Tab Page at a 57 // Called to signal that an event has occurred on the New Tab Page at a
58 // particular time since navigation start. 58 // particular time since navigation start.
59 virtual void OnLogEvent(NTPLoggingEventType event, 59 virtual void OnLogEvent(NTPLoggingEventType event,
60 base::TimeDelta time) = 0; 60 base::TimeDelta time) = 0;
61 61
62 // Called to log an impression from a given provider on the New Tab Page. 62 // Called to log an impression from a given provider on the New Tab Page.
63 virtual void OnLogMostVisitedImpression( 63 virtual void OnLogMostVisitedImpression(
64 int position, 64 int position,
65 ntp_tiles::NTPTileSource tile_source) = 0; 65 ntp_tiles::TileSource tile_source) = 0;
66 66
67 // Called to log a navigation from a given provider on the New Tab Page. 67 // Called to log a navigation from a given provider on the New Tab Page.
68 virtual void OnLogMostVisitedNavigation( 68 virtual void OnLogMostVisitedNavigation(
69 int position, 69 int position,
70 ntp_tiles::NTPTileSource tile_source) = 0; 70 ntp_tiles::TileSource tile_source) = 0;
71 71
72 // Called when the page wants to paste the |text| (or the clipboard contents 72 // Called when the page wants to paste the |text| (or the clipboard contents
73 // if the |text| is empty) into the omnibox. 73 // if the |text| is empty) into the omnibox.
74 virtual void PasteIntoOmnibox(const base::string16& text) = 0; 74 virtual void PasteIntoOmnibox(const base::string16& text) = 0;
75 75
76 // Called when the SearchBox wants to verify the signed-in Chrome identity 76 // Called when the SearchBox wants to verify the signed-in Chrome identity
77 // against the provided |identity|. Will make a round-trip to the browser 77 // against the provided |identity|. Will make a round-trip to the browser
78 // and eventually return the result through SendChromeIdentityCheckResult. 78 // and eventually return the result through SendChromeIdentityCheckResult.
79 // Calls SendChromeIdentityCheckResult with true if the identity matches. 79 // Calls SendChromeIdentityCheckResult with true if the identity matches.
80 virtual void OnChromeIdentityCheck(const base::string16& identity) = 0; 80 virtual void OnChromeIdentityCheck(const base::string16& identity) = 0;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 bool supports_instant) override; 176 bool supports_instant) override;
177 void FocusOmnibox(int page_id, OmniboxFocusState state) override; 177 void FocusOmnibox(int page_id, OmniboxFocusState state) override;
178 void DeleteMostVisitedItem(int page_seq_no, const GURL& url) override; 178 void DeleteMostVisitedItem(int page_seq_no, const GURL& url) override;
179 void UndoMostVisitedDeletion(int page_seq_no, const GURL& url) override; 179 void UndoMostVisitedDeletion(int page_seq_no, const GURL& url) override;
180 void UndoAllMostVisitedDeletions(int page_seq_no) override; 180 void UndoAllMostVisitedDeletions(int page_seq_no) override;
181 void LogEvent(int page_seq_no, 181 void LogEvent(int page_seq_no,
182 NTPLoggingEventType event, 182 NTPLoggingEventType event,
183 base::TimeDelta time) override; 183 base::TimeDelta time) override;
184 void LogMostVisitedImpression(int page_seq_no, 184 void LogMostVisitedImpression(int page_seq_no,
185 int position, 185 int position,
186 ntp_tiles::NTPTileSource tile_source) override; 186 ntp_tiles::TileSource tile_source) override;
187 void LogMostVisitedNavigation(int page_seq_no, 187 void LogMostVisitedNavigation(int page_seq_no,
188 int position, 188 int position,
189 ntp_tiles::NTPTileSource tile_source) override; 189 ntp_tiles::TileSource tile_source) override;
190 void PasteAndOpenDropdown(int page_seq_no, 190 void PasteAndOpenDropdown(int page_seq_no,
191 const base::string16& text) override; 191 const base::string16& text) override;
192 void ChromeIdentityCheck(int page_seq_no, 192 void ChromeIdentityCheck(int page_seq_no,
193 const base::string16& identity) override; 193 const base::string16& identity) override;
194 void HistorySyncCheck(int page_seq_no) override; 194 void HistorySyncCheck(int page_seq_no) override;
195 195
196 void set_search_box_client_factory_for_testing( 196 void set_search_box_client_factory_for_testing(
197 std::unique_ptr<SearchBoxClientFactory> factory) { 197 std::unique_ptr<SearchBoxClientFactory> factory) {
198 search_box_client_factory_ = std::move(factory); 198 search_box_client_factory_ = std::move(factory);
199 } 199 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // the moment, but this could be extended to a map of connected frames, if 241 // the moment, but this could be extended to a map of connected frames, if
242 // desired. 242 // desired.
243 mojo::AssociatedBinding<chrome::mojom::Instant> binding_; 243 mojo::AssociatedBinding<chrome::mojom::Instant> binding_;
244 244
245 std::unique_ptr<SearchBoxClientFactory> search_box_client_factory_; 245 std::unique_ptr<SearchBoxClientFactory> search_box_client_factory_;
246 246
247 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); 247 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter);
248 }; 248 };
249 249
250 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ 250 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/instant_service_unittest.cc ('k') | chrome/browser/ui/search/search_ipc_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698