| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #undef LOG | 9 #undef LOG |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // These shouldn't be rendered as text or HTML, but shouldn't download | 76 // These shouldn't be rendered as text or HTML, but shouldn't download |
| 77 // either. | 77 // either. |
| 78 const char* not_text[] = { | 78 const char* not_text[] = { |
| 79 "image/png", | 79 "image/png", |
| 80 "image/gif", | 80 "image/gif", |
| 81 "image/jpeg", | 81 "image/jpeg", |
| 82 "image/bmp", | 82 "image/bmp", |
| 83 }; | 83 }; |
| 84 for (size_t i = 0; i < arraysize(not_text); ++i) { | 84 for (size_t i = 0; i < arraysize(not_text); ++i) { |
| 85 CheckMimeType(not_text[i], L""); | 85 CheckMimeType(not_text[i], L""); |
| 86 test_shell_->webView()->StopLoading(); | 86 test_shell_->webView()->mainFrame()->stopLoading(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 // TODO(tc): make sure other mime types properly go to download (e.g., | 89 // TODO(tc): make sure other mime types properly go to download (e.g., |
| 90 // image/foo). | 90 // image/foo). |
| 91 | 91 |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace | 94 } // namespace |
| OLD | NEW |