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

Side by Side Diff: chrome_frame/bind_context_info.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
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 #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
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 scoped_refptr<ProtData> prot_data = get_prot_data();
amit 2011/02/22 23:12:05 nit: this can simply be return prot_data_->url(),
ananta 2011/02/22 23:15:49 Done.
85 return prot_data->url();
86 }
87 return std::wstring();
88 }
89
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698