| OLD | NEW |
| 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/blink_test_runner.h" | 5 #include "content/shell/renderer/layout_test/blink_test_runner.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <clocale> | 9 #include <clocale> |
| 10 #include <cmath> | 10 #include <cmath> |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 const std::string& data)>& callback) { | 698 const std::string& data)>& callback) { |
| 699 ::content::FetchManifest(view, url, callback); | 699 ::content::FetchManifest(view, url, callback); |
| 700 } | 700 } |
| 701 | 701 |
| 702 void BlinkTestRunner::SetPermission(const std::string& name, | 702 void BlinkTestRunner::SetPermission(const std::string& name, |
| 703 const std::string& value, | 703 const std::string& value, |
| 704 const GURL& origin, | 704 const GURL& origin, |
| 705 const GURL& embedding_origin) { | 705 const GURL& embedding_origin) { |
| 706 content::PermissionStatus status; | 706 content::PermissionStatus status; |
| 707 if (value == "granted") | 707 if (value == "granted") |
| 708 status = PERMISSION_STATUS_GRANTED; | 708 status = PermissionStatus::GRANTED; |
| 709 else if (value == "prompt") | 709 else if (value == "prompt") |
| 710 status = PERMISSION_STATUS_ASK; | 710 status = PermissionStatus::ASK; |
| 711 else if (value == "denied") | 711 else if (value == "denied") |
| 712 status = PERMISSION_STATUS_DENIED; | 712 status = PermissionStatus::DENIED; |
| 713 else { | 713 else { |
| 714 NOTREACHED(); | 714 NOTREACHED(); |
| 715 status = PERMISSION_STATUS_DENIED; | 715 status = PermissionStatus::DENIED; |
| 716 } | 716 } |
| 717 | 717 |
| 718 Send(new LayoutTestHostMsg_SetPermission( | 718 Send(new LayoutTestHostMsg_SetPermission( |
| 719 routing_id(), name, status, origin, embedding_origin)); | 719 routing_id(), name, status, origin, embedding_origin)); |
| 720 } | 720 } |
| 721 | 721 |
| 722 void BlinkTestRunner::ResetPermissions() { | 722 void BlinkTestRunner::ResetPermissions() { |
| 723 Send(new LayoutTestHostMsg_ResetPermissions(routing_id())); | 723 Send(new LayoutTestHostMsg_ResetPermissions(routing_id())); |
| 724 } | 724 } |
| 725 | 725 |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 get_bluetooth_events_callbacks_.pop_front(); | 999 get_bluetooth_events_callbacks_.pop_front(); |
| 1000 callback.Run(events); | 1000 callback.Run(events); |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 void BlinkTestRunner::ReportLeakDetectionResult( | 1003 void BlinkTestRunner::ReportLeakDetectionResult( |
| 1004 const LeakDetectionResult& report) { | 1004 const LeakDetectionResult& report) { |
| 1005 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1005 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 } // namespace content | 1008 } // namespace content |
| OLD | NEW |