| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_moniker.h" | 5 #include "chrome_frame/urlmon_moniker.h" |
| 6 | 6 |
| 7 #include <shlguid.h> | 7 #include <shlguid.h> |
| 8 | 8 |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/utf_string_conversions.h" |
| 10 #include "chrome_frame/bho.h" | 11 #include "chrome_frame/bho.h" |
| 11 #include "chrome_frame/bind_context_info.h" | 12 #include "chrome_frame/bind_context_info.h" |
| 12 #include "chrome_frame/exception_barrier.h" | 13 #include "chrome_frame/exception_barrier.h" |
| 13 #include "chrome_frame/chrome_active_document.h" | 14 #include "chrome_frame/chrome_active_document.h" |
| 14 #include "chrome_frame/urlmon_bind_status_callback.h" | 15 #include "chrome_frame/urlmon_bind_status_callback.h" |
| 15 #include "chrome_frame/utils.h" | 16 #include "chrome_frame/utils.h" |
| 16 #include "chrome_frame/vtable_patch_manager.h" | 17 #include "chrome_frame/vtable_patch_manager.h" |
| 17 #include "net/http/http_util.h" | 18 #include "net/http/http_util.h" |
| 18 | 19 |
| 19 static const int kMonikerBindToObject = 8; | 20 static const int kMonikerBindToObject = 8; |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 247 |
| 247 // If the binding terminates before the data could be played back | 248 // If the binding terminates before the data could be played back |
| 248 // now is the chance. Sometimes OnStopBinding happens after this returns | 249 // now is the chance. Sometimes OnStopBinding happens after this returns |
| 249 // and then it's too late. | 250 // and then it's too late. |
| 250 if ((S_OK == hr) && callback) | 251 if ((S_OK == hr) && callback) |
| 251 callback->MayPlayBack(BSCF_LASTDATANOTIFICATION); | 252 callback->MayPlayBack(BSCF_LASTDATANOTIFICATION); |
| 252 | 253 |
| 253 return hr; | 254 return hr; |
| 254 } | 255 } |
| 255 | 256 |
| OLD | NEW |