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_
10 #include "base/memory/scoped_ptr.h"
14 class DictionaryValue
;
19 // Person holds information about a search result retrieved from the People
20 // Search Google webservice.
22 // Parses the dictionary from the people search result and creates a person
24 static scoped_ptr
<Person
> Create(const base::DictionaryValue
& dict
);
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.
37 // The Owner Id is a GAIA obfuscated id which can be used to identify a
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
;
51 } // namespace app_list
53 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PERSON_H_