| 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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 const GURL& url, | 668 const GURL& url, |
| 669 const base::Callback<void(const blink::WebURLResponse& response, | 669 const base::Callback<void(const blink::WebURLResponse& response, |
| 670 const std::string& data)>& callback) { | 670 const std::string& data)>& callback) { |
| 671 ::content::FetchManifest(view, url, callback); | 671 ::content::FetchManifest(view, url, callback); |
| 672 } | 672 } |
| 673 | 673 |
| 674 void BlinkTestRunner::SetPermission(const std::string& name, | 674 void BlinkTestRunner::SetPermission(const std::string& name, |
| 675 const std::string& value, | 675 const std::string& value, |
| 676 const GURL& origin, | 676 const GURL& origin, |
| 677 const GURL& embedding_origin) { | 677 const GURL& embedding_origin) { |
| 678 content::PermissionStatus status; | 678 content::mojom::PermissionStatus status; |
| 679 if (value == "granted") | 679 if (value == "granted") |
| 680 status = PermissionStatus::GRANTED; | 680 status = mojom::PermissionStatus::GRANTED; |
| 681 else if (value == "prompt") | 681 else if (value == "prompt") |
| 682 status = PermissionStatus::ASK; | 682 status = mojom::PermissionStatus::ASK; |
| 683 else if (value == "denied") | 683 else if (value == "denied") |
| 684 status = PermissionStatus::DENIED; | 684 status = mojom::PermissionStatus::DENIED; |
| 685 else { | 685 else { |
| 686 NOTREACHED(); | 686 NOTREACHED(); |
| 687 status = PermissionStatus::DENIED; | 687 status = mojom::PermissionStatus::DENIED; |
| 688 } | 688 } |
| 689 | 689 |
| 690 Send(new LayoutTestHostMsg_SetPermission( | 690 Send(new LayoutTestHostMsg_SetPermission( |
| 691 routing_id(), name, status, origin, embedding_origin)); | 691 routing_id(), name, status, origin, embedding_origin)); |
| 692 } | 692 } |
| 693 | 693 |
| 694 void BlinkTestRunner::ResetPermissions() { | 694 void BlinkTestRunner::ResetPermissions() { |
| 695 Send(new LayoutTestHostMsg_ResetPermissions(routing_id())); | 695 Send(new LayoutTestHostMsg_ResetPermissions(routing_id())); |
| 696 } | 696 } |
| 697 | 697 |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 get_bluetooth_events_callbacks_.pop_front(); | 1009 get_bluetooth_events_callbacks_.pop_front(); |
| 1010 callback.Run(events); | 1010 callback.Run(events); |
| 1011 } | 1011 } |
| 1012 | 1012 |
| 1013 void BlinkTestRunner::ReportLeakDetectionResult( | 1013 void BlinkTestRunner::ReportLeakDetectionResult( |
| 1014 const LeakDetectionResult& report) { | 1014 const LeakDetectionResult& report) { |
| 1015 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1015 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 1016 } | 1016 } |
| 1017 | 1017 |
| 1018 } // namespace content | 1018 } // namespace content |
| OLD | NEW |