| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
| 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ | 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 12 #include "components/gcm_driver/gcm_client.h" | 13 #include "components/gcm_driver/gcm_client.h" |
| 13 | 14 |
| 14 namespace base { | 15 namespace base { |
| 15 class SequencedTaskRunner; | 16 class SequencedTaskRunner; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace gcm { | 19 namespace gcm { |
| 19 | 20 |
| 20 class FakeGCMClient : public GCMClient { | 21 class FakeGCMClient : public GCMClient { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 scoped_refptr<base::SequencedTaskRunner> io_thread_; | 116 scoped_refptr<base::SequencedTaskRunner> io_thread_; |
| 116 std::map<std::string, std::pair<std::string, std::string>> instance_id_data_; | 117 std::map<std::string, std::pair<std::string, std::string>> instance_id_data_; |
| 117 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; | 118 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); | 120 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace gcm | 123 } // namespace gcm |
| 123 | 124 |
| 124 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ | 125 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
| OLD | NEW |