OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |