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

Side by Side Diff: webkit/glue/mimetype_unittest.cc

Issue 251051: Move various methods from glue/webview.h to api/public/WebView.h... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webframe_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webframe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698