OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #include "chrome/browser/android/contextualsearch/contextual_search_context.h" | 5 #include "chrome/browser/android/contextualsearch/contextual_search_context.h" |
6 | 6 |
7 ContextualSearchContext::ContextualSearchContext( | 7 ContextualSearchContext::ContextualSearchContext( |
8 const std::string& selected_text, | 8 const std::string& selected_text, |
9 const bool use_resolved_search_term, | 9 const bool use_resolved_search_term, |
10 const GURL& page_url, | 10 const GURL& page_url, |
11 const std::string& encoding) | 11 const std::string& encoding) |
12 : selected_text(selected_text), | 12 : use_resolved_search_term(use_resolved_search_term), |
13 use_resolved_search_term(use_resolved_search_term), | |
14 page_url(page_url), | 13 page_url(page_url), |
15 encoding(encoding) { | 14 encoding(encoding), |
16 } | 15 selected_text(selected_text) {} |
| 16 |
| 17 ContextualSearchContext::ContextualSearchContext( |
| 18 const bool use_resolved_search_term, |
| 19 const GURL& page_url, |
| 20 const std::string& encoding) |
| 21 : use_resolved_search_term(use_resolved_search_term), |
| 22 page_url(page_url), |
| 23 encoding(encoding) {} |
17 | 24 |
18 ContextualSearchContext::~ContextualSearchContext() { | 25 ContextualSearchContext::~ContextualSearchContext() { |
19 } | 26 } |
OLD | NEW |