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

Side by Side Diff: chrome/browser/chromeos/contacts/contact_store.h

Issue 10827406: contacts: Rename provider_id to contact_id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_STORE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_STORE_H_
6 #define CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_STORE_H_ 6 #define CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_STORE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 ContactStore() {} 24 ContactStore() {}
25 virtual ~ContactStore() {} 25 virtual ~ContactStore() {}
26 26
27 // Initializes the object. 27 // Initializes the object.
28 virtual void Init() = 0; 28 virtual void Init() = 0;
29 29
30 // Appends all (non-deleted) contacts to |contacts_out|. 30 // Appends all (non-deleted) contacts to |contacts_out|.
31 virtual void AppendContacts(ContactPointers* contacts_out) = 0; 31 virtual void AppendContacts(ContactPointers* contacts_out) = 0;
32 32
33 // Returns the contact identified by |provider_id|. 33 // Returns the contact identified by |contact_id|.
34 // NULL is returned if the contact doesn't exist. 34 // NULL is returned if the contact doesn't exist.
35 virtual const Contact* GetContactByProviderId( 35 virtual const Contact* GetContactById(const std::string& contact_id) = 0;
36 const std::string& provider_id) = 0;
37 36
38 // Adds or removes an observer. 37 // Adds or removes an observer.
39 virtual void AddObserver(ContactStoreObserver* observer) = 0; 38 virtual void AddObserver(ContactStoreObserver* observer) = 0;
40 virtual void RemoveObserver(ContactStoreObserver* observer) = 0; 39 virtual void RemoveObserver(ContactStoreObserver* observer) = 0;
41 40
42 private: 41 private:
43 DISALLOW_COPY_AND_ASSIGN(ContactStore); 42 DISALLOW_COPY_AND_ASSIGN(ContactStore);
44 }; 43 };
45 44
46 // Interface for factories that return ContactStore objects of a given type. 45 // Interface for factories that return ContactStore objects of a given type.
(...skipping 12 matching lines...) Expand all
59 // stuff contained in a Profile. 58 // stuff contained in a Profile.
60 virtual ContactStore* CreateContactStore(Profile* profile) = 0; 59 virtual ContactStore* CreateContactStore(Profile* profile) = 0;
61 60
62 private: 61 private:
63 DISALLOW_COPY_AND_ASSIGN(ContactStoreFactory); 62 DISALLOW_COPY_AND_ASSIGN(ContactStoreFactory);
64 }; 63 };
65 64
66 } // namespace contacts 65 } // namespace contacts
67 66
68 #endif // CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_STORE_H_ 67 #endif // CHROME_BROWSER_CHROMEOS_CONTACTS_CONTACT_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/contacts/contact_manager_unittest.cc ('k') | chrome/browser/chromeos/contacts/contact_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698