Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: chrome_frame/chrome_active_document.cc

Issue 6469103: If we switch into ChromeFrame as a result of a redirect then we need to navig... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/bind_context_info.cc ('k') | chrome_frame/protocol_sink_wrap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome_frame/bind_context_info.cc ('k') | chrome_frame/protocol_sink_wrap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698