| OLD | NEW |
| 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 16 matching lines...) Expand all Loading... |
| 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_LogImpression to the browser. |
| 35 void LogImpression(int position, const base::string16& provider); | 35 void LogImpression(int position, const base::string16& provider); |
| 36 | 36 |
| 37 // Sends ChromeViewHostMsg_LogNavigation to the browser. |
| 38 void LogNavigation(int position, const base::string16& provider); |
| 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 |
| 46 // "chrome-search://favicon/" in order to prevent the invalid URL to be | 49 // "chrome-search://favicon/" in order to prevent the invalid URL to be |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |