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

Side by Side Diff: chrome/browser/ui/search/search_ipc_router_policy_impl.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: Answered kmadhusu and dcheng 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 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_POLICY_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_POLICY_IMPL_H_
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_POLICY_IMPL_H_ 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_POLICY_IMPL_H_
7 7
8 #include "chrome/browser/ui/search/search_ipc_router.h" 8 #include "chrome/browser/ui/search/search_ipc_router.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 12 matching lines...) Expand all
23 // Overridden from SearchIPCRouter::Policy: 23 // Overridden from SearchIPCRouter::Policy:
24 bool ShouldProcessSetVoiceSearchSupport() override; 24 bool ShouldProcessSetVoiceSearchSupport() override;
25 bool ShouldProcessFocusOmnibox(bool is_active_tab) override; 25 bool ShouldProcessFocusOmnibox(bool is_active_tab) override;
26 bool ShouldProcessNavigateToURL(bool is_active_tab) override; 26 bool ShouldProcessNavigateToURL(bool is_active_tab) override;
27 bool ShouldProcessDeleteMostVisitedItem() override; 27 bool ShouldProcessDeleteMostVisitedItem() override;
28 bool ShouldProcessUndoMostVisitedDeletion() override; 28 bool ShouldProcessUndoMostVisitedDeletion() override;
29 bool ShouldProcessUndoAllMostVisitedDeletions() override; 29 bool ShouldProcessUndoAllMostVisitedDeletions() override;
30 bool ShouldProcessLogEvent() override; 30 bool ShouldProcessLogEvent() override;
31 bool ShouldProcessPasteIntoOmnibox(bool is_active_tab) override; 31 bool ShouldProcessPasteIntoOmnibox(bool is_active_tab) override;
32 bool ShouldProcessChromeIdentityCheck() override; 32 bool ShouldProcessChromeIdentityCheck() override;
33 bool ShouldProcessHistorySyncCheck() override;
33 bool ShouldSendSetPromoInformation() override; 34 bool ShouldSendSetPromoInformation() override;
34 bool ShouldSendSetDisplayInstantResults() override; 35 bool ShouldSendSetDisplayInstantResults() override;
35 bool ShouldSendSetSuggestionToPrefetch() override; 36 bool ShouldSendSetSuggestionToPrefetch() override;
36 bool ShouldSendSetOmniboxStartMargin() override; 37 bool ShouldSendSetOmniboxStartMargin() override;
37 bool ShouldSendSetInputInProgress(bool is_active_tab) override; 38 bool ShouldSendSetInputInProgress(bool is_active_tab) override;
38 bool ShouldSendOmniboxFocusChanged() override; 39 bool ShouldSendOmniboxFocusChanged() override;
39 bool ShouldSendMostVisitedItems() override; 40 bool ShouldSendMostVisitedItems() override;
40 bool ShouldSendThemeBackgroundInfo() override; 41 bool ShouldSendThemeBackgroundInfo() override;
41 bool ShouldSendToggleVoiceSearch() override; 42 bool ShouldSendToggleVoiceSearch() override;
42 bool ShouldSubmitQuery() override; 43 bool ShouldSubmitQuery() override;
43 44
44 // Used by unit tests. 45 // Used by unit tests.
45 void set_is_incognito(bool is_incognito) { 46 void set_is_incognito(bool is_incognito) {
46 is_incognito_ = is_incognito; 47 is_incognito_ = is_incognito;
47 } 48 }
48 49
49 const content::WebContents* web_contents_; 50 const content::WebContents* web_contents_;
50 bool is_incognito_; 51 bool is_incognito_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouterPolicyImpl); 53 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouterPolicyImpl);
53 }; 54 };
54 55
55 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_POLICY_IMPL_H_ 56 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_POLICY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698