1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_CONTEXT_H_
6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_CONTEXT_H_
10 #include "base/basictypes.h"
13 // Encapsulates key parts of a Contextual Search Context, including surrounding
15 struct ContextualSearchContext
{
17 ContextualSearchContext(const std::string
& selected_text
,
18 const bool use_resolved_search_term
,
20 const std::string
& encoding
);
21 ~ContextualSearchContext();
23 const std::string selected_text
;
24 const bool use_resolved_search_term
;
26 const std::string encoding
;
28 base::string16 surrounding_text
;
32 DISALLOW_COPY_AND_ASSIGN(ContextualSearchContext
);
35 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_CONTEXT_H_