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

Side by Side Diff: chrome/browser/chromeos/contacts/google_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_GOOGLE_CONTACT_STORE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CONTACTS_GOOGLE_CONTACT_STORE_H_
6 #define CHROME_BROWSER_CHROMEOS_CONTACTS_GOOGLE_CONTACT_STORE_H_ 6 #define CHROME_BROWSER_CHROMEOS_CONTACTS_GOOGLE_CONTACT_STORE_H_
7 7
8 #include "chrome/browser/chromeos/contacts/contact_store.h" 8 #include "chrome/browser/chromeos/contacts/contact_store.h"
9 9
10 #include <map> 10 #include <map>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 DISALLOW_COPY_AND_ASSIGN(TestAPI); 68 DISALLOW_COPY_AND_ASSIGN(TestAPI);
69 }; 69 };
70 70
71 explicit GoogleContactStore(Profile* profile); 71 explicit GoogleContactStore(Profile* profile);
72 virtual ~GoogleContactStore(); 72 virtual ~GoogleContactStore();
73 73
74 // ContactStore implementation: 74 // ContactStore implementation:
75 virtual void Init() OVERRIDE; 75 virtual void Init() OVERRIDE;
76 virtual void AppendContacts(ContactPointers* contacts_out) OVERRIDE; 76 virtual void AppendContacts(ContactPointers* contacts_out) OVERRIDE;
77 virtual const Contact* GetContactByProviderId( 77 virtual const Contact* GetContactById(const std::string& contact_id) OVERRIDE;
78 const std::string& provider_id) OVERRIDE;
79 virtual void AddObserver(ContactStoreObserver* observer) OVERRIDE; 78 virtual void AddObserver(ContactStoreObserver* observer) OVERRIDE;
80 virtual void RemoveObserver(ContactStoreObserver* observer) OVERRIDE; 79 virtual void RemoveObserver(ContactStoreObserver* observer) OVERRIDE;
81 80
82 // net::NetworkChangeNotifier::ConnectionTypeObserver implementation: 81 // net::NetworkChangeNotifier::ConnectionTypeObserver implementation:
83 virtual void OnConnectionTypeChanged( 82 virtual void OnConnectionTypeChanged(
84 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; 83 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
85 84
86 private: 85 private:
87 // Map from a contact's Google-assigned ID to the contact itself. 86 // Map from a contact's Google-assigned ID to the contact itself.
88 typedef std::map<std::string, Contact*> ContactMap; 87 typedef std::map<std::string, Contact*> ContactMap;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 virtual bool CanCreateContactStoreForProfile(Profile* profile) OVERRIDE; 188 virtual bool CanCreateContactStoreForProfile(Profile* profile) OVERRIDE;
190 virtual ContactStore* CreateContactStore(Profile* profile) OVERRIDE; 189 virtual ContactStore* CreateContactStore(Profile* profile) OVERRIDE;
191 190
192 private: 191 private:
193 DISALLOW_COPY_AND_ASSIGN(GoogleContactStoreFactory); 192 DISALLOW_COPY_AND_ASSIGN(GoogleContactStoreFactory);
194 }; 193 };
195 194
196 } // namespace contacts 195 } // namespace contacts
197 196
198 #endif // CHROME_BROWSER_CHROMEOS_CONTACTS_GOOGLE_CONTACT_STORE_H_ 197 #endif // CHROME_BROWSER_CHROMEOS_CONTACTS_GOOGLE_CONTACT_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/contacts/fake_contact_store.cc ('k') | chrome/browser/chromeos/contacts/google_contact_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698