| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_FIELD_TRIAL_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_FIELD_TRIAL_H_ |
| 6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_FIELD_TRIAL_H_ | 6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_FIELD_TRIAL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // Search is being performed. | 29 // Search is being performed. |
| 30 int GetIcingSurroundingSize(); | 30 int GetIcingSurroundingSize(); |
| 31 | 31 |
| 32 // Gets whether sending the URL of the base page is disabled. | 32 // Gets whether sending the URL of the base page is disabled. |
| 33 bool IsSendBasePageURLDisabled(); | 33 bool IsSendBasePageURLDisabled(); |
| 34 | 34 |
| 35 // Gets whether decoding the mentions fields in the Resolve is disabled. | 35 // Gets whether decoding the mentions fields in the Resolve is disabled. |
| 36 bool IsDecodeMentionsDisabled(); | 36 bool IsDecodeMentionsDisabled(); |
| 37 | 37 |
| 38 // Gets whether Bar integration with Now on Tap data is enabled. | 38 // Gets whether Bar integration with Now on Tap data is enabled. |
| 39 bool IsNowOnTapBarIntegrationEnabled(); | 39 virtual bool IsNowOnTapBarIntegrationEnabled(); |
| 40 | 40 |
| 41 // Disables the cache. | 41 // Disables the cache. |
| 42 void DisableCache(); | 42 void DisableCache(); |
| 43 | 43 |
| 44 // Constant used in tests. | 44 // Constant used in tests. |
| 45 static const int kContextualSearchDefaultIcingSurroundingSize; | 45 static const int kContextualSearchDefaultIcingSurroundingSize; |
| 46 | 46 |
| 47 protected: | 47 protected: |
| 48 // Checks if command-line switch of the given name exists. | 48 // Checks if command-line switch of the given name exists. |
| 49 virtual bool HasSwitch(const std::string& name); | 49 virtual bool HasSwitch(const std::string& name); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 bool is_send_base_page_url_disabled_; | 82 bool is_send_base_page_url_disabled_; |
| 83 bool is_decode_mentions_disabled_cached_; | 83 bool is_decode_mentions_disabled_cached_; |
| 84 bool is_decode_mentions_disabled_; | 84 bool is_decode_mentions_disabled_; |
| 85 bool is_now_on_tap_bar_integration_enabled_cached_; | 85 bool is_now_on_tap_bar_integration_enabled_cached_; |
| 86 bool is_now_on_tap_bar_integration_enabled_; | 86 bool is_now_on_tap_bar_integration_enabled_; |
| 87 | 87 |
| 88 DISALLOW_COPY_AND_ASSIGN(ContextualSearchFieldTrial); | 88 DISALLOW_COPY_AND_ASSIGN(ContextualSearchFieldTrial); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_FIELD_TRIAL
_H_ | 91 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_FIELD_TRIAL
_H_ |
| OLD | NEW |