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

Side by Side Diff: chrome/browser/android/contextualsearch/resolved_search_term.cc

Issue 2440843002: [Contextual Search] Pipe basic quick action data from C++ to Java (Closed)
Patch Set: [Contextual Search] Pipe basic quick action data from C++ to Java Created 4 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
« no previous file with comments | « chrome/browser/android/contextualsearch/resolved_search_term.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/resolved_search_term.h" 5 #include "chrome/browser/android/contextualsearch/resolved_search_term.h"
6 6
7 #include "net/url_request/url_fetcher.h" 7 #include "net/url_request/url_fetcher.h"
8 8
9 ResolvedSearchTerm::ResolvedSearchTerm(int response_code) 9 ResolvedSearchTerm::ResolvedSearchTerm(int response_code)
10 : is_invalid(response_code == net::URLFetcher::RESPONSE_CODE_INVALID), 10 : is_invalid(response_code == net::URLFetcher::RESPONSE_CODE_INVALID),
11 response_code(response_code), 11 response_code(response_code),
12 search_term(""), 12 search_term(""),
13 display_text(""), 13 display_text(""),
14 alternate_term(""), 14 alternate_term(""),
15 mid(""), 15 mid(""),
16 prevent_preload(false), 16 prevent_preload(false),
17 selection_start_adjust(0), 17 selection_start_adjust(0),
18 selection_end_adjust(0), 18 selection_end_adjust(0),
19 context_language(""), 19 context_language(""),
20 thumbnail_url(""), 20 thumbnail_url(""),
21 caption("") {} 21 caption(""),
22 quick_action_uri(""),
23 quick_action_category("") {}
22 24
23 ResolvedSearchTerm::ResolvedSearchTerm(bool is_invalid, 25 ResolvedSearchTerm::ResolvedSearchTerm(
24 int response_code, 26 bool is_invalid,
25 const std::string& search_term, 27 int response_code,
26 const std::string& display_text, 28 const std::string& search_term,
27 const std::string& alternate_term, 29 const std::string& display_text,
28 const std::string& mid, 30 const std::string& alternate_term,
29 bool prevent_preload, 31 const std::string& mid,
30 int selection_start_adjust, 32 bool prevent_preload,
31 int selection_end_adjust, 33 int selection_start_adjust,
32 const std::string& context_language, 34 int selection_end_adjust,
33 const std::string& thumbnail_url, 35 const std::string& context_language,
34 const std::string& caption) 36 const std::string& thumbnail_url,
37 const std::string& caption,
38 const std::string& quick_action_uri,
39 const std::string& quick_action_category)
35 : is_invalid(is_invalid), 40 : is_invalid(is_invalid),
36 response_code(response_code), 41 response_code(response_code),
37 search_term(search_term), 42 search_term(search_term),
38 display_text(display_text), 43 display_text(display_text),
39 alternate_term(alternate_term), 44 alternate_term(alternate_term),
40 mid(mid), 45 mid(mid),
41 prevent_preload(prevent_preload), 46 prevent_preload(prevent_preload),
42 selection_start_adjust(selection_start_adjust), 47 selection_start_adjust(selection_start_adjust),
43 selection_end_adjust(selection_end_adjust), 48 selection_end_adjust(selection_end_adjust),
44 context_language(context_language), 49 context_language(context_language),
45 thumbnail_url(thumbnail_url), 50 thumbnail_url(thumbnail_url),
46 caption(caption) {} 51 caption(caption),
52 quick_action_uri(quick_action_uri),
53 quick_action_category(quick_action_category) {}
47 54
48 ResolvedSearchTerm::~ResolvedSearchTerm() {} 55 ResolvedSearchTerm::~ResolvedSearchTerm() {}
OLDNEW
« no previous file with comments | « chrome/browser/android/contextualsearch/resolved_search_term.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698