| 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 // Implementation of ChromeActiveDocument | 5 // Implementation of ChromeActiveDocument |
| 6 #include "chrome_frame/chrome_active_document.h" | 6 #include "chrome_frame/chrome_active_document.h" |
| 7 | 7 |
| 8 #include <hlink.h> | 8 #include <hlink.h> |
| 9 #include <htiface.h> | 9 #include <htiface.h> |
| 10 #include <initguid.h> | 10 #include <initguid.h> |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 } | 241 } |
| 242 | 242 |
| 243 NavigationManager* mgr = NavigationManager::GetThreadInstance(); | 243 NavigationManager* mgr = NavigationManager::GetThreadInstance(); |
| 244 DLOG_IF(ERROR, !mgr) << "Couldn't get instance of NavigationManager"; | 244 DLOG_IF(ERROR, !mgr) << "Couldn't get instance of NavigationManager"; |
| 245 | 245 |
| 246 std::wstring url; | 246 std::wstring url; |
| 247 | 247 |
| 248 ScopedComPtr<BindContextInfo> info; | 248 ScopedComPtr<BindContextInfo> info; |
| 249 BindContextInfo::FromBindContext(bind_context, info.Receive()); | 249 BindContextInfo::FromBindContext(bind_context, info.Receive()); |
| 250 DCHECK(info); | 250 DCHECK(info); |
| 251 if (info && !info->url().empty()) { | 251 if (info && !info->GetUrl().empty()) { |
| 252 url = info->url(); | 252 url = info->GetUrl(); |
| 253 } else { | 253 } else { |
| 254 // If the original URL contains an anchor, then the URL queried | 254 // If the original URL contains an anchor, then the URL queried |
| 255 // from the moniker does not contain the anchor. To workaround | 255 // from the moniker does not contain the anchor. To workaround |
| 256 // this we retrieve the URL from our BHO. | 256 // this we retrieve the URL from our BHO. |
| 257 url = GetActualUrlFromMoniker(moniker_name, bind_context, | 257 url = GetActualUrlFromMoniker(moniker_name, bind_context, |
| 258 mgr ? mgr->url(): std::wstring()); | 258 mgr ? mgr->url(): std::wstring()); |
| 259 } | 259 } |
| 260 | 260 |
| 261 ChromeFrameUrl cf_url; | 261 ChromeFrameUrl cf_url; |
| 262 if (!cf_url.Parse(url)) { | 262 if (!cf_url.Parse(url)) { |
| (...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1398 return true; | 1398 return true; |
| 1399 | 1399 |
| 1400 if (new_navigation_info.url != navigation_info_->url) | 1400 if (new_navigation_info.url != navigation_info_->url) |
| 1401 return true; | 1401 return true; |
| 1402 | 1402 |
| 1403 if (new_navigation_info.referrer != navigation_info_->referrer) | 1403 if (new_navigation_info.referrer != navigation_info_->referrer) |
| 1404 return true; | 1404 return true; |
| 1405 | 1405 |
| 1406 return false; | 1406 return false; |
| 1407 } | 1407 } |
| OLD | NEW |