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

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

Issue 701973002: Separate checking the user identity and checking if the user is syncing his history in two differen… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_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 22 matching lines...) Expand all
33 33
34 // Sends ChromeViewHostMsg_LogMostVisitedImpression to the browser. 34 // Sends ChromeViewHostMsg_LogMostVisitedImpression to the browser.
35 void LogMostVisitedImpression(int position, const base::string16& provider); 35 void LogMostVisitedImpression(int position, const base::string16& provider);
36 36
37 // Sends ChromeViewHostMsg_LogMostVisitedNavigation to the browser. 37 // Sends ChromeViewHostMsg_LogMostVisitedNavigation to the browser.
38 void LogMostVisitedNavigation(int position, const base::string16& provider); 38 void LogMostVisitedNavigation(int position, const base::string16& provider);
39 39
40 // Sends ChromeViewHostMsg_ChromeIdentityCheck to the browser. 40 // Sends ChromeViewHostMsg_ChromeIdentityCheck to the browser.
41 void CheckIsUserSignedInToChromeAs(const base::string16& identity); 41 void CheckIsUserSignedInToChromeAs(const base::string16& identity);
42 42
43 // Sends ChromeViewHostMsg_CheckUserSyncHistory to the browser.
44 void CheckUserSyncHistory();
45
43 // Sends ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem to the browser. 46 // Sends ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem to the browser.
44 void DeleteMostVisitedItem(InstantRestrictedID most_visited_item_id); 47 void DeleteMostVisitedItem(InstantRestrictedID most_visited_item_id);
45 48
46 // Generates the favicon URL of the most visited item specified by the 49 // Generates the favicon URL of the most visited item specified by the
47 // |transient_url|. If the |transient_url| is valid, returns true and fills in 50 // |transient_url|. If the |transient_url| is valid, returns true and fills in
48 // |url|. If the |transient_url| is invalid, returns true and |url| is set to 51 // |url|. If the |transient_url| is invalid, returns true and |url| is set to
49 // "chrome-search://favicon/" in order to prevent the invalid URL to be 52 // "chrome-search://favicon/" in order to prevent the invalid URL to be
50 // requested. 53 // requested.
51 // 54 //
52 // Valid forms of |transient_url|: 55 // Valid forms of |transient_url|:
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void OnMarginChange(int margin); 128 void OnMarginChange(int margin);
126 void OnMostVisitedChanged( 129 void OnMostVisitedChanged(
127 const std::vector<InstantMostVisitedItem>& items); 130 const std::vector<InstantMostVisitedItem>& items);
128 void OnPromoInformationReceived(bool is_app_launcher_enabled); 131 void OnPromoInformationReceived(bool is_app_launcher_enabled);
129 void OnSetDisplayInstantResults(bool display_instant_results); 132 void OnSetDisplayInstantResults(bool display_instant_results);
130 void OnSetInputInProgress(bool input_in_progress); 133 void OnSetInputInProgress(bool input_in_progress);
131 void OnSetSuggestionToPrefetch(const InstantSuggestion& suggestion); 134 void OnSetSuggestionToPrefetch(const InstantSuggestion& suggestion);
132 void OnSubmit(const base::string16& query); 135 void OnSubmit(const base::string16& query);
133 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); 136 void OnThemeChanged(const ThemeBackgroundInfo& theme_info);
134 void OnToggleVoiceSearch(); 137 void OnToggleVoiceSearch();
138 void OnCheckUserSyncHistoryResult(bool sync_history);
135 139
136 // Returns the current zoom factor of the render view or 1 on failure. 140 // Returns the current zoom factor of the render view or 1 on failure.
137 double GetZoom() const; 141 double GetZoom() const;
138 142
139 // Sets the searchbox values to their initial value. 143 // Sets the searchbox values to their initial value.
140 void Reset(); 144 void Reset();
141 145
142 // Returns the URL of the Most Visited item specified by the |item_id|. 146 // Returns the URL of the Most Visited item specified by the |item_id|.
143 GURL GetURLForMostVisitedItem(InstantRestrictedID item_id) const; 147 GURL GetURLForMostVisitedItem(InstantRestrictedID item_id) const;
144 148
145 int page_seq_no_; 149 int page_seq_no_;
146 bool app_launcher_enabled_; 150 bool app_launcher_enabled_;
147 bool is_focused_; 151 bool is_focused_;
148 bool is_input_in_progress_; 152 bool is_input_in_progress_;
149 bool is_key_capture_enabled_; 153 bool is_key_capture_enabled_;
150 bool display_instant_results_; 154 bool display_instant_results_;
151 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 155 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
152 ThemeBackgroundInfo theme_info_; 156 ThemeBackgroundInfo theme_info_;
153 base::string16 query_; 157 base::string16 query_;
154 int start_margin_; 158 int start_margin_;
155 InstantSuggestion suggestion_; 159 InstantSuggestion suggestion_;
156 160
157 DISALLOW_COPY_AND_ASSIGN(SearchBox); 161 DISALLOW_COPY_AND_ASSIGN(SearchBox);
158 }; 162 };
159 163
160 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 164 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698