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

Side by Side Diff: chrome/renderer/searchbox/searchbox.h

Issue 2544883006: Cleanup: Replace NTPLoggingTileSource by ntp_tiles::NTPTileSource (Closed)
Patch Set: tests Created 4 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
« no previous file with comments | « chrome/renderer/searchbox/DEPS ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_SEARCHBOX_SEARCHBOX_H_ 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "chrome/common/search/instant_types.h" 13 #include "chrome/common/search/instant_types.h"
14 #include "chrome/common/search/ntp_logging_events.h" 14 #include "chrome/common/search/ntp_logging_events.h"
15 #include "chrome/renderer/instant_restricted_id_cache.h" 15 #include "chrome/renderer/instant_restricted_id_cache.h"
16 #include "components/ntp_tiles/ntp_tile_source.h"
16 #include "components/omnibox/common/omnibox_focus_state.h" 17 #include "components/omnibox/common/omnibox_focus_state.h"
17 #include "content/public/renderer/render_view_observer.h" 18 #include "content/public/renderer/render_view_observer.h"
18 #include "content/public/renderer/render_view_observer_tracker.h" 19 #include "content/public/renderer/render_view_observer_tracker.h"
19 #include "ui/base/window_open_disposition.h" 20 #include "ui/base/window_open_disposition.h"
20 #include "url/gurl.h" 21 #include "url/gurl.h"
21 22
22 namespace content { 23 namespace content {
23 class RenderView; 24 class RenderView;
24 } 25 }
25 26
(...skipping 21 matching lines...) Expand all
47 const = 0; 48 const = 0;
48 }; 49 };
49 50
50 explicit SearchBox(content::RenderView* render_view); 51 explicit SearchBox(content::RenderView* render_view);
51 ~SearchBox() override; 52 ~SearchBox() override;
52 53
53 // Sends ChromeViewHostMsg_LogEvent to the browser. 54 // Sends ChromeViewHostMsg_LogEvent to the browser.
54 void LogEvent(NTPLoggingEventType event); 55 void LogEvent(NTPLoggingEventType event);
55 56
56 // Sends ChromeViewHostMsg_LogMostVisitedImpression to the browser. 57 // Sends ChromeViewHostMsg_LogMostVisitedImpression to the browser.
57 void LogMostVisitedImpression(int position, NTPLoggingTileSource tile_source); 58 void LogMostVisitedImpression(int position,
59 ntp_tiles::NTPTileSource tile_source);
58 60
59 // Sends ChromeViewHostMsg_LogMostVisitedNavigation to the browser. 61 // Sends ChromeViewHostMsg_LogMostVisitedNavigation to the browser.
60 void LogMostVisitedNavigation(int position, NTPLoggingTileSource tile_source); 62 void LogMostVisitedNavigation(int position,
63 ntp_tiles::NTPTileSource tile_source);
61 64
62 // Sends ChromeViewHostMsg_ChromeIdentityCheck to the browser. 65 // Sends ChromeViewHostMsg_ChromeIdentityCheck to the browser.
63 void CheckIsUserSignedInToChromeAs(const base::string16& identity); 66 void CheckIsUserSignedInToChromeAs(const base::string16& identity);
64 67
65 // Sends ChromeViewHostMsg_HistorySyncCheck to the browser. 68 // Sends ChromeViewHostMsg_HistorySyncCheck to the browser.
66 void CheckIsUserSyncingHistory(); 69 void CheckIsUserSyncingHistory();
67 70
68 // Sends ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem to the browser. 71 // Sends ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem to the browser.
69 void DeleteMostVisitedItem(InstantRestrictedID most_visited_item_id); 72 void DeleteMostVisitedItem(InstantRestrictedID most_visited_item_id);
70 73
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 171 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
169 ThemeBackgroundInfo theme_info_; 172 ThemeBackgroundInfo theme_info_;
170 base::string16 query_; 173 base::string16 query_;
171 EmbeddedSearchRequestParams embedded_search_request_params_; 174 EmbeddedSearchRequestParams embedded_search_request_params_;
172 InstantSuggestion suggestion_; 175 InstantSuggestion suggestion_;
173 176
174 DISALLOW_COPY_AND_ASSIGN(SearchBox); 177 DISALLOW_COPY_AND_ASSIGN(SearchBox);
175 }; 178 };
176 179
177 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 180 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW
« no previous file with comments | « chrome/renderer/searchbox/DEPS ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698