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

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

Issue 784873004: Push API: delete MockWebPushClient [switchover 2/6] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 // snapshot (width, height, snapshot) to the callback. The snapshot is in 554 // snapshot (width, height, snapshot) to the callback. The snapshot is in
555 // uint8 RGBA format. 555 // uint8 RGBA format.
556 void CapturePixelsAsyncThen(v8::Handle<v8::Function> callback); 556 void CapturePixelsAsyncThen(v8::Handle<v8::Function> callback);
557 // Similar to CapturePixelsAsyncThen(). Copies to the clipboard the image 557 // Similar to CapturePixelsAsyncThen(). Copies to the clipboard the image
558 // located at a particular point in the WebView (if there is such an image), 558 // located at a particular point in the WebView (if there is such an image),
559 // reads back its pixels, and provides the snapshot to the callback. If there 559 // reads back its pixels, and provides the snapshot to the callback. If there
560 // is no image at that point, calls the callback with (0, 0, empty_snapshot). 560 // is no image at that point, calls the callback with (0, 0, empty_snapshot).
561 void CopyImageAtAndCapturePixelsAsyncThen( 561 void CopyImageAtAndCapturePixelsAsyncThen(
562 int x, int y, const v8::Handle<v8::Function> callback); 562 int x, int y, const v8::Handle<v8::Function> callback);
563 563
564 // TODO(mvanouwerkerk): Delete once refactor to platform is complete.
565 // https://crbug.com/389194
566 void SetMockPushClientSuccess(const std::string& endpoint,
567 const std::string& registration_id);
568
569 // TODO(mvanouwerkerk): Delete once refactor to platform is complete.
570 // https://crbug.com/389194
571 void SetMockPushClientError(const std::string& message);
572
573 // Sets the origin's permission to use the Push API to granted or denied. 564 // Sets the origin's permission to use the Push API to granted or denied.
574 void SetPushMessagingPermission(const GURL& origin, bool allowed); 565 void SetPushMessagingPermission(const GURL& origin, bool allowed);
575 566
576 // Clears all previously granted Push API permissions. 567 // Clears all previously granted Push API permissions.
577 void ClearPushMessagingPermissions(); 568 void ClearPushMessagingPermissions();
578 569
579 void GetManifestThen(v8::Handle<v8::Function> callback); 570 void GetManifestThen(v8::Handle<v8::Function> callback);
580 571
581 /////////////////////////////////////////////////////////////////////////// 572 ///////////////////////////////////////////////////////////////////////////
582 // Internal helpers 573 // Internal helpers
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 bool use_mock_theme_; 778 bool use_mock_theme_;
788 779
789 base::WeakPtrFactory<TestRunner> weak_factory_; 780 base::WeakPtrFactory<TestRunner> weak_factory_;
790 781
791 DISALLOW_COPY_AND_ASSIGN(TestRunner); 782 DISALLOW_COPY_AND_ASSIGN(TestRunner);
792 }; 783 };
793 784
794 } // namespace content 785 } // namespace content
795 786
796 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 787 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/mock_web_push_client.cc ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698