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

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

Issue 336413006: Chrome suggestions are no longer served if the user doesn't sync his history on a given machine (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/search/search_tab_helper.h » ('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 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 <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void OnLogMostVisitedNavigation(int position, 70 virtual void OnLogMostVisitedNavigation(int position,
71 const base::string16& provider) = 0; 71 const base::string16& provider) = 0;
72 72
73 // Called when the page wants to paste the |text| (or the clipboard contents 73 // Called when the page wants to paste the |text| (or the clipboard contents
74 // if the |text| is empty) into the omnibox. 74 // if the |text| is empty) into the omnibox.
75 virtual void PasteIntoOmnibox(const base::string16& text) = 0; 75 virtual void PasteIntoOmnibox(const base::string16& text) = 0;
76 76
77 // Called when the SearchBox wants to verify the signed-in Chrome identity 77 // Called when the SearchBox wants to verify the signed-in Chrome identity
78 // against the provided |identity|. Will make a round-trip to the browser 78 // against the provided |identity|. Will make a round-trip to the browser
79 // and eventually return the result through SendChromeIdentityCheckResult. 79 // and eventually return the result through SendChromeIdentityCheckResult.
80 // Calls SendChromeIdentityCheckResult with true if both the identity
81 // matches and the user syncs their history.
82 // TODO(beaudoin): Change this function name and related APIs now that it's
83 // checking both the identity and the user's sync state.
80 virtual void OnChromeIdentityCheck(const base::string16& identity) = 0; 84 virtual void OnChromeIdentityCheck(const base::string16& identity) = 0;
81 }; 85 };
82 86
83 // An interface to be implemented by consumers of SearchIPCRouter objects to 87 // An interface to be implemented by consumers of SearchIPCRouter objects to
84 // decide whether to process the message received from the page, and vice 88 // decide whether to process the message received from the page, and vice
85 // versa (decide whether to send messages to the page). 89 // versa (decide whether to send messages to the page).
86 class Policy { 90 class Policy {
87 public: 91 public:
88 virtual ~Policy() {} 92 virtual ~Policy() {}
89 93
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // SearchIPCRouter to ensure that delayed IPC replies are ignored. 228 // SearchIPCRouter to ensure that delayed IPC replies are ignored.
225 int commit_counter_; 229 int commit_counter_;
226 230
227 // Set to true, when the tab corresponding to |this| instance is active. 231 // Set to true, when the tab corresponding to |this| instance is active.
228 bool is_active_tab_; 232 bool is_active_tab_;
229 233
230 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); 234 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter);
231 }; 235 };
232 236
233 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ 237 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/search/search_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698