OLD | NEW |
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 { |
11 class WebContents; | 11 class WebContents; |
12 } | 12 } |
13 | 13 |
14 // The SearchIPCRouter::Policy implementation. | 14 // The SearchIPCRouter::Policy implementation. |
15 class SearchIPCRouterPolicyImpl : public SearchIPCRouter::Policy { | 15 class SearchIPCRouterPolicyImpl : public SearchIPCRouter::Policy { |
16 public: | 16 public: |
17 explicit SearchIPCRouterPolicyImpl(const content::WebContents* web_contents); | 17 explicit SearchIPCRouterPolicyImpl(const content::WebContents* web_contents); |
18 ~SearchIPCRouterPolicyImpl() override; | 18 ~SearchIPCRouterPolicyImpl() override; |
19 | 19 |
20 private: | 20 private: |
21 friend class SearchIPCRouterPolicyTest; | 21 friend class SearchIPCRouterPolicyTest; |
22 | 22 |
23 // Overridden from SearchIPCRouter::Policy: | 23 // Overridden from SearchIPCRouter::Policy: |
24 bool ShouldProcessSetVoiceSearchSupport() override; | |
25 bool ShouldProcessFocusOmnibox(bool is_active_tab) override; | 24 bool ShouldProcessFocusOmnibox(bool is_active_tab) override; |
26 bool ShouldProcessNavigateToURL(bool is_active_tab) override; | 25 bool ShouldProcessNavigateToURL(bool is_active_tab) override; |
27 bool ShouldProcessDeleteMostVisitedItem() override; | 26 bool ShouldProcessDeleteMostVisitedItem() override; |
28 bool ShouldProcessUndoMostVisitedDeletion() override; | 27 bool ShouldProcessUndoMostVisitedDeletion() override; |
29 bool ShouldProcessUndoAllMostVisitedDeletions() override; | 28 bool ShouldProcessUndoAllMostVisitedDeletions() override; |
30 bool ShouldProcessLogEvent() override; | 29 bool ShouldProcessLogEvent() override; |
31 bool ShouldProcessPasteIntoOmnibox(bool is_active_tab) override; | 30 bool ShouldProcessPasteIntoOmnibox(bool is_active_tab) override; |
32 bool ShouldProcessChromeIdentityCheck() override; | 31 bool ShouldProcessChromeIdentityCheck() override; |
33 bool ShouldProcessHistorySyncCheck() override; | 32 bool ShouldProcessHistorySyncCheck() override; |
34 bool ShouldSendSetPromoInformation() override; | 33 bool ShouldSendSetPromoInformation() override; |
(...skipping 12 matching lines...) Expand all Loading... |
47 is_incognito_ = is_incognito; | 46 is_incognito_ = is_incognito; |
48 } | 47 } |
49 | 48 |
50 const content::WebContents* web_contents_; | 49 const content::WebContents* web_contents_; |
51 bool is_incognito_; | 50 bool is_incognito_; |
52 | 51 |
53 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouterPolicyImpl); | 52 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouterPolicyImpl); |
54 }; | 53 }; |
55 | 54 |
56 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_POLICY_IMPL_H_ | 55 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_POLICY_IMPL_H_ |
OLD | NEW |