| OLD | NEW |
| 1 // Copyright (c) 2010 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" |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 p->status_code(), p->status_text()); | 362 p->status_code(), p->status_text()); |
| 363 delete p; | 363 delete p; |
| 364 } | 364 } |
| 365 } | 365 } |
| 366 saved_progress_.clear(); | 366 saved_progress_.clear(); |
| 367 } | 367 } |
| 368 } | 368 } |
| 369 | 369 |
| 370 if (data_sniffer_.is_cache_valid()) { | 370 if (data_sniffer_.is_cache_valid()) { |
| 371 if (data_sniffer_.is_chrome()) { | 371 if (data_sniffer_.is_chrome()) { |
| 372 ScopedComPtr<BindContextInfo> info; | 372 base::win::ScopedComPtr<BindContextInfo> info; |
| 373 BindContextInfo::FromBindContext(bind_ctx_, info.Receive()); | 373 BindContextInfo::FromBindContext(bind_ctx_, info.Receive()); |
| 374 DCHECK(info); | 374 DCHECK(info); |
| 375 if (info) { | 375 if (info) { |
| 376 info->SetToSwitch(data_sniffer_.cache_); | 376 info->SetToSwitch(data_sniffer_.cache_); |
| 377 } | 377 } |
| 378 } | 378 } |
| 379 | 379 |
| 380 hr = data_sniffer_.DrainCache(delegate(), | 380 hr = data_sniffer_.DrainCache(delegate(), |
| 381 flags | BSCF_FIRSTDATANOTIFICATION, clip_format_); | 381 flags | BSCF_FIRSTDATANOTIFICATION, clip_format_); |
| 382 DLOG_IF(WARNING, INET_E_TERMINATED_BIND != hr) << __FUNCTION__ << | 382 DLOG_IF(WARNING, INET_E_TERMINATED_BIND != hr) << __FUNCTION__ << |
| (...skipping 35 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 |