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

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

Issue 178253008: Redoing Issue 36073011: Allowing file:/// in Instant Extended's Most Visited links. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused consts. Created 6 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 | Annotate | Revision Log
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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 24
25 class SearchBox : public content::RenderViewObserver, 25 class SearchBox : public content::RenderViewObserver,
26 public content::RenderViewObserverTracker<SearchBox> { 26 public content::RenderViewObserverTracker<SearchBox> {
27 public: 27 public:
28 explicit SearchBox(content::RenderView* render_view); 28 explicit SearchBox(content::RenderView* render_view);
29 virtual ~SearchBox(); 29 virtual ~SearchBox();
30 30
31 // Sends ChromeViewHostMsg_LogEvent to the browser. 31 // Sends ChromeViewHostMsg_LogEvent to the browser.
32 void LogEvent(NTPLoggingEventType event); 32 void LogEvent(NTPLoggingEventType event);
33 33
34 // Sends ChromeViewHostMsg_LogImpression to the browser. 34 // Sends ChromeViewHostMsg_LogMostVisitedImpression to the browser.
35 void LogImpression(int position, const base::string16& provider); 35 void LogMostVisitedImpression(int position, const base::string16& provider);
36
37 // Sends ChromeViewHostMsg_LogMostVisitedNavigation to the browser.
38 void LogMostVisitedNavigation(int position, const base::string16& provider);
36 39
37 // Sends ChromeViewHostMsg_ChromeIdentityCheck to the browser. 40 // Sends ChromeViewHostMsg_ChromeIdentityCheck to the browser.
38 void CheckIsUserSignedInToChromeAs(const base::string16& identity); 41 void CheckIsUserSignedInToChromeAs(const base::string16& identity);
39 42
40 // Sends ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem to the browser. 43 // Sends ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem to the browser.
41 void DeleteMostVisitedItem(InstantRestrictedID most_visited_item_id); 44 void DeleteMostVisitedItem(InstantRestrictedID most_visited_item_id);
42 45
43 // Generates the favicon URL of the most visited item specified by the 46 // Generates the favicon URL of the most visited item specified by the
44 // |transient_url|. If the |transient_url| is valid, returns true and fills in 47 // |transient_url|. If the |transient_url| is valid, returns true and fills in
45 // |url|. If the |transient_url| is invalid, returns true and |url| is set to 48 // |url|. If the |transient_url| is invalid, returns true and |url| is set to
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 149 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
147 ThemeBackgroundInfo theme_info_; 150 ThemeBackgroundInfo theme_info_;
148 base::string16 query_; 151 base::string16 query_;
149 int start_margin_; 152 int start_margin_;
150 InstantSuggestion suggestion_; 153 InstantSuggestion suggestion_;
151 154
152 DISALLOW_COPY_AND_ASSIGN(SearchBox); 155 DISALLOW_COPY_AND_ASSIGN(SearchBox);
153 }; 156 };
154 157
155 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 158 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698