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

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

Issue 2697793004: Push API: Validate storage before returning cached subscriptions (Closed)
Patch Set: Comment out PUSH_GETREGISTRATION_STATUS_PUBLIC_KEY_UNAVAILABLE Created 3 years, 10 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
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_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"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const ChromeBuildInfo& chrome_build_info, 46 const ChromeBuildInfo& chrome_build_info,
47 const base::FilePath& store_path, 47 const base::FilePath& store_path,
48 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, 48 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner,
49 const scoped_refptr<net::URLRequestContextGetter>& 49 const scoped_refptr<net::URLRequestContextGetter>&
50 url_request_context_getter, 50 url_request_context_getter,
51 std::unique_ptr<Encryptor> encryptor, 51 std::unique_ptr<Encryptor> encryptor,
52 Delegate* delegate) override; 52 Delegate* delegate) override;
53 void Start(StartMode start_mode) override; 53 void Start(StartMode start_mode) override;
54 void Stop() override; 54 void Stop() override;
55 void Register(const linked_ptr<RegistrationInfo>& registration_info) override; 55 void Register(const linked_ptr<RegistrationInfo>& registration_info) override;
56 bool ValidateRegistration(
57 const linked_ptr<RegistrationInfo>& registration_info,
58 const std::string& registration_id) override;
56 void Unregister( 59 void Unregister(
57 const linked_ptr<RegistrationInfo>& registration_info) override; 60 const linked_ptr<RegistrationInfo>& registration_info) override;
58 void Send(const std::string& app_id, 61 void Send(const std::string& app_id,
59 const std::string& receiver_id, 62 const std::string& receiver_id,
60 const OutgoingMessage& message) override; 63 const OutgoingMessage& message) override;
61 void RecordDecryptionFailure(const std::string& app_id, 64 void RecordDecryptionFailure(const std::string& app_id,
62 GCMEncryptionProvider::DecryptionResult result) 65 GCMEncryptionProvider::DecryptionResult result)
63 override; 66 override;
64 void SetRecording(bool recording) override; 67 void SetRecording(bool recording) override;
65 void ClearActivityLogs() override; 68 void ClearActivityLogs() override;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 std::map<std::string, std::pair<std::string, std::string>> instance_id_data_; 125 std::map<std::string, std::pair<std::string, std::string>> instance_id_data_;
123 GCMStatsRecorderImpl recorder_; 126 GCMStatsRecorderImpl recorder_;
124 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; 127 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_;
125 128
126 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); 129 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient);
127 }; 130 };
128 131
129 } // namespace gcm 132 } // namespace gcm
130 133
131 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_ 134 #endif // COMPONENTS_GCM_DRIVER_FAKE_GCM_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698