Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <htiframe.h> | 5 #include <htiframe.h> |
| 6 #include <mshtml.h> | 6 #include <mshtml.h> |
| 7 | 7 |
| 8 #include "chrome_frame/protocol_sink_wrap.h" | 8 #include "chrome_frame/protocol_sink_wrap.h" |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 return is_text_html; | 221 return is_text_html; |
| 222 } | 222 } |
| 223 | 223 |
| 224 bool IsAdditionallySupportedContentType(const wchar_t* status_text) { | 224 bool IsAdditionallySupportedContentType(const wchar_t* status_text) { |
| 225 static const char* kHeaderContentTypes[] = { | 225 static const char* kHeaderContentTypes[] = { |
| 226 "application/xhtml+xml", | 226 "application/xhtml+xml", |
| 227 "application/xml", | 227 "application/xml", |
| 228 "image/svg", | 228 "image/svg", |
| 229 "image/svg+xml", | 229 "image/svg+xml", |
| 230 "text/xml", | 230 "text/xml", |
| 231 "video/x-msvideo", | |
|
scherkus (not reviewing)
2011/06/29 17:00:36
since we're only adding these additional codecs fo
ilja
2011/06/29 21:40:05
I thought about this and it seems I don't need mim
| |
| 231 "video/ogg", | 232 "video/ogg", |
| 232 "video/webm", | 233 "video/webm", |
| 233 "video/mp4" | 234 "video/mp4" |
| 234 }; | 235 }; |
| 235 | 236 |
| 236 const std::wstring str = status_text; | 237 const std::wstring str = status_text; |
| 237 for (int i = 0; i < arraysize(kHeaderContentTypes); ++i) { | 238 for (int i = 0; i < arraysize(kHeaderContentTypes); ++i) { |
| 238 if (LowerCaseEqualsASCII(str, kHeaderContentTypes[i])) | 239 if (LowerCaseEqualsASCII(str, kHeaderContentTypes[i])) |
| 239 return true; | 240 return true; |
| 240 } | 241 } |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 940 // Explicit release, otherwise ~CComObjectStackEx will complain about | 941 // Explicit release, otherwise ~CComObjectStackEx will complain about |
| 941 // outstanding reference to us, because it runs before ~FakeProtocol | 942 // outstanding reference to us, because it runs before ~FakeProtocol |
| 942 prot.transaction_.Release(); | 943 prot.transaction_.Release(); |
| 943 } | 944 } |
| 944 } | 945 } |
| 945 | 946 |
| 946 void TransactionHooks::RevertHooks() { | 947 void TransactionHooks::RevertHooks() { |
| 947 vtable_patch::UnpatchInterfaceMethods(CTransaction_PatchInfo); | 948 vtable_patch::UnpatchInterfaceMethods(CTransaction_PatchInfo); |
| 948 vtable_patch::UnpatchInterfaceMethods(CTransaction2_PatchInfo); | 949 vtable_patch::UnpatchInterfaceMethods(CTransaction2_PatchInfo); |
| 949 } | 950 } |
| OLD | NEW |