Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / app_list / search / people / person.h
blob050d752bad3bb9879bada5990dae9c139b64c4ef
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.
5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PERSON_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PERSON_H_
8 #include <string>
10 #include "base/memory/scoped_ptr.h"
11 #include "url/gurl.h"
13 namespace base {
14 class DictionaryValue;
17 namespace app_list {
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 scoped_ptr<Person> Create(const base::DictionaryValue& dict);
26 Person();
27 ~Person();
29 scoped_ptr<Person> Duplicate();
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;
37 // The Owner Id is a GAIA obfuscated id which can be used to identify a
38 // Google contact.
39 std::string owner_id;
41 // Interaction rank is a number between 0.0-1.0 indicating how frequently
42 // you interact with the person.
43 double interaction_rank;
45 std::string display_name;
46 std::string email;
47 GURL image_url;
51 } // namespace app_list
53 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PERSON_H_