| 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 "chrome_frame/urlmon_bind_status_callback.h" | 5 #include "chrome_frame/urlmon_bind_status_callback.h" |
| 6 | 6 |
| 7 #include <mshtml.h> | 7 #include <mshtml.h> |
| 8 #include <shlguid.h> | 8 #include <shlguid.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/stringprintf.h" | 12 #include "base/stringprintf.h" |
| 13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "chrome_frame/bind_context_info.h" | 15 #include "chrome_frame/bind_context_info.h" |
| 16 #include "chrome_frame/chrome_tab.h" |
| 16 #include "chrome_frame/exception_barrier.h" | 17 #include "chrome_frame/exception_barrier.h" |
| 17 #include "chrome_frame/urlmon_moniker.h" | 18 #include "chrome_frame/urlmon_moniker.h" |
| 18 #include "chrome_tab.h" // NOLINT | |
| 19 | 19 |
| 20 | 20 |
| 21 // A helper to given feed data to the specified |bscb| using | 21 // A helper to given feed data to the specified |bscb| using |
| 22 // CacheStream instance. | 22 // CacheStream instance. |
| 23 HRESULT CacheStream::BSCBFeedData(IBindStatusCallback* bscb, const char* data, | 23 HRESULT CacheStream::BSCBFeedData(IBindStatusCallback* bscb, const char* data, |
| 24 size_t size, CLIPFORMAT clip_format, | 24 size_t size, CLIPFORMAT clip_format, |
| 25 size_t flags, bool eof) { | 25 size_t flags, bool eof) { |
| 26 if (!bscb) { | 26 if (!bscb) { |
| 27 NOTREACHED() << "invalid IBindStatusCallback"; | 27 NOTREACHED() << "invalid IBindStatusCallback"; |
| 28 return E_INVALIDARG; | 28 return E_INVALIDARG; |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 case BINDSTATUS_CACHEFILENAMEAVAILABLE: | 418 case BINDSTATUS_CACHEFILENAMEAVAILABLE: |
| 419 case BINDSTATUS_SERVER_MIMETYPEAVAILABLE: | 419 case BINDSTATUS_SERVER_MIMETYPEAVAILABLE: |
| 420 return true; | 420 return true; |
| 421 default: | 421 default: |
| 422 break; | 422 break; |
| 423 } | 423 } |
| 424 } | 424 } |
| 425 | 425 |
| 426 return false; | 426 return false; |
| 427 } | 427 } |
| OLD | NEW |