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 <algorithm> | 7 #include <algorithm> |
8 #include <clocale> | 8 #include <clocale> |
9 #include <cmath> | 9 #include <cmath> |
10 | 10 |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 } | 597 } |
598 | 598 |
599 if (id == routing_ids_.end()) { | 599 if (id == routing_ids_.end()) { |
600 NOTREACHED(); | 600 NOTREACHED(); |
601 return std::string(); | 601 return std::string(); |
602 } | 602 } |
603 return DumpBackForwardList(session_histories_[pos], | 603 return DumpBackForwardList(session_histories_[pos], |
604 current_entry_indexes_[pos]); | 604 current_entry_indexes_[pos]); |
605 } | 605 } |
606 | 606 |
| 607 void BlinkTestRunner::FetchManifest( |
| 608 blink::WebView* view, |
| 609 const GURL& url, |
| 610 const base::Callback<void(const blink::WebURLResponse& response, |
| 611 const std::string& data)>& callback) { |
| 612 ::content::FetchManifest(view, url, callback); |
| 613 } |
| 614 |
607 void BlinkTestRunner::SetPermission(const std::string& name, | 615 void BlinkTestRunner::SetPermission(const std::string& name, |
608 const std::string& value, | 616 const std::string& value, |
609 const GURL& origin, | 617 const GURL& origin, |
610 const GURL& embedding_origin) { | 618 const GURL& embedding_origin) { |
611 content::PermissionStatus status; | 619 content::PermissionStatus status; |
612 if (value == "granted") | 620 if (value == "granted") |
613 status = PERMISSION_STATUS_GRANTED; | 621 status = PERMISSION_STATUS_GRANTED; |
614 else if (value == "prompt") | 622 else if (value == "prompt") |
615 status = PERMISSION_STATUS_ASK; | 623 status = PERMISSION_STATUS_ASK; |
616 else if (value == "denied") | 624 else if (value == "denied") |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 | 840 |
833 leak_detector_->TryLeakDetection(main_frame); | 841 leak_detector_->TryLeakDetection(main_frame); |
834 } | 842 } |
835 | 843 |
836 void BlinkTestRunner::ReportLeakDetectionResult( | 844 void BlinkTestRunner::ReportLeakDetectionResult( |
837 const LeakDetectionResult& report) { | 845 const LeakDetectionResult& report) { |
838 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 846 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
839 } | 847 } |
840 | 848 |
841 } // namespace content | 849 } // namespace content |
OLD | NEW |