| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ | 5 #ifndef GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ |
| 6 #define GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ | 6 #define GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "google_apis/gcm/gcm_client.h" | 11 #include "google_apis/gcm/gcm_client.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class FilePath; | 14 class FilePath; |
| 15 class SequencedTaskRunner; | 15 class SequencedTaskRunner; |
| 16 } // namespace base | 16 } // namespace base |
| 17 | 17 |
| 18 namespace gcm { | 18 namespace gcm { |
| 19 | 19 |
| 20 class GCMStore; | 20 class GCMStore; |
| 21 class UserList; | 21 class UserList; |
| 22 | 22 |
| 23 class GCMClientImpl : public GCMClient { | 23 class GCM_EXPORT GCMClientImpl : public GCMClient { |
| 24 public: | 24 public: |
| 25 GCMClientImpl(); | 25 GCMClientImpl(); |
| 26 virtual ~GCMClientImpl(); | 26 virtual ~GCMClientImpl(); |
| 27 | 27 |
| 28 void Initialize( | 28 void Initialize( |
| 29 const base::FilePath& path, | 29 const base::FilePath& path, |
| 30 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner); | 30 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner); |
| 31 | 31 |
| 32 // Overridden from GCMClient: | 32 // Overridden from GCMClient: |
| 33 virtual void SetUserDelegate(const std::string& username, | 33 virtual void SetUserDelegate(const std::string& username, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 48 private: | 48 private: |
| 49 scoped_ptr<GCMStore> gcm_store_; | 49 scoped_ptr<GCMStore> gcm_store_; |
| 50 scoped_ptr<UserList> user_list_; | 50 scoped_ptr<UserList> user_list_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); | 52 DISALLOW_COPY_AND_ASSIGN(GCMClientImpl); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace gcm | 55 } // namespace gcm |
| 56 | 56 |
| 57 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ | 57 #endif // GOOGLE_APIS_GCM_GCM_CLIENT_IMPL_H_ |
| OLD | NEW |