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

Side by Side Diff: content/shell/renderer/test_runner/mock_web_push_client.h

Issue 700993002: Revert of Implement getPermissionStatus in MockWebPushClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@push_has_permission
Patch Set: Created 6 years, 1 month 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 | « no previous file | content/shell/renderer/test_runner/mock_web_push_client.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 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
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_
OLDNEW
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/mock_web_push_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698