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

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, 2 months 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
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)
Donn Denman 2016/10/20 23:30:19 I think we need/want some additional initializers
Theresa 2016/10/20 23:42:36 Done.
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 22
23 ResolvedSearchTerm::ResolvedSearchTerm(bool is_invalid, 23 ResolvedSearchTerm::ResolvedSearchTerm(
24 int response_code, 24 bool is_invalid,
25 const std::string& search_term, 25 int response_code,
26 const std::string& display_text, 26 const std::string& search_term,
27 const std::string& alternate_term, 27 const std::string& display_text,
28 const std::string& mid, 28 const std::string& alternate_term,
29 bool prevent_preload, 29 const std::string& mid,
30 int selection_start_adjust, 30 bool prevent_preload,
31 int selection_end_adjust, 31 int selection_start_adjust,
32 const std::string& context_language, 32 int selection_end_adjust,
33 const std::string& thumbnail_url, 33 const std::string& context_language,
34 const std::string& caption) 34 const std::string& thumbnail_url,
35 const std::string& caption,
36 const std::string& quick_action_uri,
37 const std::string& quick_action_category)
35 : is_invalid(is_invalid), 38 : is_invalid(is_invalid),
36 response_code(response_code), 39 response_code(response_code),
37 search_term(search_term), 40 search_term(search_term),
38 display_text(display_text), 41 display_text(display_text),
39 alternate_term(alternate_term), 42 alternate_term(alternate_term),
40 mid(mid), 43 mid(mid),
41 prevent_preload(prevent_preload), 44 prevent_preload(prevent_preload),
42 selection_start_adjust(selection_start_adjust), 45 selection_start_adjust(selection_start_adjust),
43 selection_end_adjust(selection_end_adjust), 46 selection_end_adjust(selection_end_adjust),
44 context_language(context_language), 47 context_language(context_language),
45 thumbnail_url(thumbnail_url), 48 thumbnail_url(thumbnail_url),
46 caption(caption) {} 49 caption(caption),
50 quick_action_uri(quick_action_uri),
51 quick_action_category(quick_action_category) {}
47 52
48 ResolvedSearchTerm::~ResolvedSearchTerm() {} 53 ResolvedSearchTerm::~ResolvedSearchTerm() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698