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 CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "third_party/WebKit/public/platform/WebPushClient.h" | 10 #include "third_party/WebKit/public/platform/WebPushClient.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 void SetMockSuccessValues(const std::string& end_point, | 30 void SetMockSuccessValues(const std::string& end_point, |
31 const std::string& registration_id); | 31 const std::string& registration_id); |
32 | 32 |
33 void SetMockErrorValues(const std::string& message); | 33 void SetMockErrorValues(const std::string& message); |
34 | 34 |
35 private: | 35 private: |
36 // WebPushClient implementation. | 36 // WebPushClient implementation. |
37 virtual void registerPushMessaging( | 37 virtual void registerPushMessaging( |
38 blink::WebPushRegistrationCallbacks* callbacks, | 38 blink::WebPushRegistrationCallbacks* callbacks, |
39 blink::WebServiceWorkerProvider* service_worker_provider); | 39 blink::WebServiceWorkerProvider* service_worker_provider); |
40 virtual void getPermissionStatus(blink::WebPushPermissionCallback* callback, | |
41 blink::WebServiceWorkerProvider* provider); | |
42 | 40 |
43 std::string end_point_; | 41 std::string end_point_; |
44 std::string registration_id_; | 42 std::string registration_id_; |
45 std::string error_message_; | 43 std::string error_message_; |
46 | 44 |
47 DISALLOW_COPY_AND_ASSIGN(MockWebPushClient); | 45 DISALLOW_COPY_AND_ASSIGN(MockWebPushClient); |
48 }; | 46 }; |
49 | 47 |
50 } // namespace content | 48 } // namespace content |
51 | 49 |
52 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ | 50 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_PUSH_CLIENT_H_ |
OLD | NEW |