| 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/bind_context_info.h" | 5 #include "chrome_frame/bind_context_info.h" |
| 6 #include "chrome_frame/utils.h" | 6 #include "chrome_frame/utils.h" |
| 7 | 7 |
| 8 // This is non const due to API expectations | 8 // This is non const due to API expectations |
| 9 static wchar_t* kBindContextInfo = L"_CHROMEFRAME_BIND_CONTEXT_INFO_"; | 9 static wchar_t* kBindContextInfo = L"_CHROMEFRAME_BIND_CONTEXT_INFO_"; |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 72 } |
| 73 | 73 |
| 74 void BindContextInfo::SetToSwitch(IStream* cache) { | 74 void BindContextInfo::SetToSwitch(IStream* cache) { |
| 75 is_switching_ = true; | 75 is_switching_ = true; |
| 76 if (!no_cache_) { | 76 if (!no_cache_) { |
| 77 cache_ = cache; | 77 cache_ = cache; |
| 78 RewindStream(cache_); | 78 RewindStream(cache_); |
| 79 } | 79 } |
| 80 } | 80 } |
| 81 | 81 |
| 82 std::wstring BindContextInfo::GetUrl() { |
| 83 if (has_prot_data()) { |
| 84 return prot_data_->url(); |
| 85 } |
| 86 return std::wstring(); |
| 87 } |
| 88 |
| OLD | NEW |