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

Side by Side Diff: chrome/browser/ui/app_list/search/people/person.h

Issue 1925733005: Remove people search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deprecate people search actions and enum Created 4 years, 7 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
(Empty)
1 // Copyright 2013 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.
4
5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PERSON_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PERSON_H_
7
8 #include <memory>
9 #include <string>
10
11 #include "url/gurl.h"
12
13 namespace base {
14 class DictionaryValue;
15 }
16
17 namespace app_list {
18
19 // Person holds information about a search result retrieved from the People
20 // Search Google webservice.
21 struct Person {
22 // Parses the dictionary from the people search result and creates a person
23 // object.
24 static std::unique_ptr<Person> Create(const base::DictionaryValue& dict);
25
26 Person();
27 ~Person();
28
29 std::unique_ptr<Person> Duplicate();
30
31 // This is a unique id for this person. In the case of a result with an
32 // associated Google account, this will always be the same as the owner id.
33 // In case of non-Google results, this id is arbitrary but guaranteed to be
34 // unique for this person search result.
35 std::string id;
36
37 // The Owner Id is a GAIA obfuscated id which can be used to identify a
38 // Google contact.
39 std::string owner_id;
40
41 // Interaction rank is a number between 0.0-1.0 indicating how frequently
42 // you interact with the person.
43 double interaction_rank;
44
45 std::string display_name;
46 std::string email;
47 GURL image_url;
48
49 };
50
51 } // namespace app_list
52
53 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PERSON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/people/people_result.cc ('k') | chrome/browser/ui/app_list/search/people/person.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698