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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "components/gcm_driver/gcm_client.h" | 10 #include "components/gcm_driver/gcm_client.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 FakeGCMClient(StartMode start_mode, | 32 FakeGCMClient(StartMode start_mode, |
33 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, | 33 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, |
34 const scoped_refptr<base::SequencedTaskRunner>& io_thread); | 34 const scoped_refptr<base::SequencedTaskRunner>& io_thread); |
35 virtual ~FakeGCMClient(); | 35 virtual ~FakeGCMClient(); |
36 | 36 |
37 // Overridden from GCMClient: | 37 // Overridden from GCMClient: |
38 // Called on IO thread. | 38 // Called on IO thread. |
39 virtual void Initialize( | 39 virtual void Initialize( |
40 const ChromeBuildInfo& chrome_build_info, | 40 const ChromeBuildInfo& chrome_build_info, |
41 const base::FilePath& store_path, | 41 const base::FilePath& store_path, |
42 const std::vector<std::string>& account_ids, | |
43 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, | 42 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, |
44 const scoped_refptr<net::URLRequestContextGetter>& | 43 const scoped_refptr<net::URLRequestContextGetter>& |
45 url_request_context_getter, | 44 url_request_context_getter, |
46 scoped_ptr<Encryptor> encryptor, | 45 scoped_ptr<Encryptor> encryptor, |
47 Delegate* delegate) OVERRIDE; | 46 Delegate* delegate) OVERRIDE; |
48 virtual void Start() OVERRIDE; | 47 virtual void Start() OVERRIDE; |
49 virtual void Stop() OVERRIDE; | 48 virtual void Stop() OVERRIDE; |
50 virtual void CheckOut() OVERRIDE; | 49 virtual void CheckOut() OVERRIDE; |
51 virtual void Register(const std::string& app_id, | 50 virtual void Register(const std::string& app_id, |
52 const std::vector<std::string>& sender_ids) OVERRIDE; | 51 const std::vector<std::string>& sender_ids) OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 scoped_refptr<base::SequencedTaskRunner> ui_thread_; | 92 scoped_refptr<base::SequencedTaskRunner> ui_thread_; |
94 scoped_refptr<base::SequencedTaskRunner> io_thread_; | 93 scoped_refptr<base::SequencedTaskRunner> io_thread_; |
95 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; | 94 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; |
96 | 95 |
97 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); | 96 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); |
98 }; | 97 }; |
99 | 98 |
100 } // namespace gcm | 99 } // namespace gcm |
101 | 100 |
102 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ | 101 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ |
OLD | NEW |