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

Side by Side Diff: components/gcm_driver/fake_gcm_driver.h

Issue 848503002: [GCM] Remove GCMDriver::Purge and GCMClient::CheckOut (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « components/gcm_driver/fake_gcm_client.cc ('k') | components/gcm_driver/fake_gcm_driver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DRIVER_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_
6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ 6 #define COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/gcm_driver/gcm_driver.h" 10 #include "components/gcm_driver/gcm_driver.h"
11 11
12 namespace gcm { 12 namespace gcm {
13 13
14 class FakeGCMDriver : public GCMDriver { 14 class FakeGCMDriver : public GCMDriver {
15 public: 15 public:
16 FakeGCMDriver(); 16 FakeGCMDriver();
17 ~FakeGCMDriver() override; 17 ~FakeGCMDriver() override;
18 18
19 // GCMDriver overrides: 19 // GCMDriver overrides:
20 void Shutdown() override; 20 void Shutdown() override;
21 void AddAppHandler(const std::string& app_id, 21 void AddAppHandler(const std::string& app_id,
22 GCMAppHandler* handler) override; 22 GCMAppHandler* handler) override;
23 void RemoveAppHandler(const std::string& app_id) override; 23 void RemoveAppHandler(const std::string& app_id) override;
24 void OnSignedIn() override; 24 void OnSignedIn() override;
25 void OnSignedOut() override; 25 void OnSignedOut() override;
26 void Purge() override;
27 void AddConnectionObserver(GCMConnectionObserver* observer) override; 26 void AddConnectionObserver(GCMConnectionObserver* observer) override;
28 void RemoveConnectionObserver(GCMConnectionObserver* observer) override; 27 void RemoveConnectionObserver(GCMConnectionObserver* observer) override;
29 void Enable() override; 28 void Enable() override;
30 void Disable() override; 29 void Disable() override;
31 GCMClient* GetGCMClientForTesting() const override; 30 GCMClient* GetGCMClientForTesting() const override;
32 bool IsStarted() const override; 31 bool IsStarted() const override;
33 bool IsConnected() const override; 32 bool IsConnected() const override;
34 void GetGCMStatistics(const GetGCMStatisticsCallback& callback, 33 void GetGCMStatistics(const GetGCMStatisticsCallback& callback,
35 bool clear_logs) override; 34 bool clear_logs) override;
36 void SetGCMRecording(const GetGCMStatisticsCallback& callback, 35 void SetGCMRecording(const GetGCMStatisticsCallback& callback,
(...skipping 16 matching lines...) Expand all
53 const std::string& receiver_id, 52 const std::string& receiver_id,
54 const GCMClient::OutgoingMessage& message) override; 53 const GCMClient::OutgoingMessage& message) override;
55 54
56 private: 55 private:
57 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver); 56 DISALLOW_COPY_AND_ASSIGN(FakeGCMDriver);
58 }; 57 };
59 58
60 } // namespace gcm 59 } // namespace gcm
61 60
62 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_ 61 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_DRIVER_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/fake_gcm_client.cc ('k') | components/gcm_driver/fake_gcm_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698