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

Side by Side Diff: content/shell/renderer/layout_test/webkit_test_runner.cc

Issue 740543003: Remove the old Web Notification code-path (Chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unittest references 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/shell/renderer/layout_test/webkit_test_runner.h" 5 #include "content/shell/renderer/layout_test/webkit_test_runner.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <clocale> 8 #include <clocale>
9 #include <cmath> 9 #include <cmath>
10 10
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } 405 }
406 406
407 void WebKitTestRunner::ClearAllDatabases() { 407 void WebKitTestRunner::ClearAllDatabases() {
408 Send(new LayoutTestHostMsg_ClearAllDatabases(routing_id())); 408 Send(new LayoutTestHostMsg_ClearAllDatabases(routing_id()));
409 } 409 }
410 410
411 void WebKitTestRunner::SetDatabaseQuota(int quota) { 411 void WebKitTestRunner::SetDatabaseQuota(int quota) {
412 Send(new LayoutTestHostMsg_SetDatabaseQuota(routing_id(), quota)); 412 Send(new LayoutTestHostMsg_SetDatabaseQuota(routing_id(), quota));
413 } 413 }
414 414
415 blink::WebNotificationPresenter::Permission
416 WebKitTestRunner::CheckWebNotificationPermission(const GURL& origin) {
417 int permission = blink::WebNotificationPresenter::PermissionNotAllowed;
418 Send(new LayoutTestHostMsg_CheckWebNotificationPermission(
419 routing_id(),
420 origin,
421 &permission));
422 return static_cast<blink::WebNotificationPresenter::Permission>(permission);
423 }
424
425 void WebKitTestRunner::GrantWebNotificationPermission(const GURL& origin, 415 void WebKitTestRunner::GrantWebNotificationPermission(const GURL& origin,
426 bool permission_granted) { 416 bool permission_granted) {
427 Send(new LayoutTestHostMsg_GrantWebNotificationPermission( 417 Send(new LayoutTestHostMsg_GrantWebNotificationPermission(
428 routing_id(), origin, permission_granted)); 418 routing_id(), origin, permission_granted));
429 } 419 }
430 420
431 void WebKitTestRunner::ClearWebNotificationPermissions() { 421 void WebKitTestRunner::ClearWebNotificationPermissions() {
432 Send(new LayoutTestHostMsg_ClearWebNotificationPermissions(routing_id())); 422 Send(new LayoutTestHostMsg_ClearWebNotificationPermissions(routing_id()));
433 } 423 }
434 424
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 748
759 leak_detector_->TryLeakDetection(main_frame); 749 leak_detector_->TryLeakDetection(main_frame);
760 } 750 }
761 751
762 void WebKitTestRunner::ReportLeakDetectionResult( 752 void WebKitTestRunner::ReportLeakDetectionResult(
763 const LeakDetectionResult& report) { 753 const LeakDetectionResult& report) {
764 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 754 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
765 } 755 }
766 756
767 } // namespace content 757 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/webkit_test_runner.h ('k') | content/shell/renderer/test_runner/notification_presenter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698