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

Unified Diff: chrome_frame/chrome_active_document.cc

Issue 545093: Refactor host network (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_active_document.h ('k') | chrome_frame/chrome_frame.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_active_document.cc
===================================================================
--- chrome_frame/chrome_active_document.cc (revision 37418)
+++ chrome_frame/chrome_active_document.cc (working copy)
@@ -54,6 +54,7 @@
ChromeActiveDocument::ChromeActiveDocument()
: first_navigation_(true),
is_automation_client_reused_(false) {
+ url_fetcher_.set_frame_busting(false);
memset(&navigation_info_, 0, sizeof(navigation_info_));
}
@@ -68,7 +69,7 @@
DLOG(INFO) << "Reusing automation client instance from "
<< cached_document;
DCHECK(automation_client_.get() != NULL);
- automation_client_->Reinitialize(this);
+ automation_client_->Reinitialize(this, &url_fetcher_);
is_automation_client_reused_ = true;
} else {
// The FinalConstruct implementation in the ChromeFrameActivexBase class
@@ -102,6 +103,8 @@
if (find_dialog_.IsWindow()) {
find_dialog_.DestroyWindow();
}
+ // ChromeFramePlugin
+ Base::Uninitialize();
}
// Override DoVerb
@@ -174,10 +177,6 @@
return S_FALSE;
}
-bool ChromeActiveDocument::is_frame_busting_enabled() {
- return false;
-}
-
void ChromeActiveDocument::OnAutomationServerReady() {
Base::OnAutomationServerReady();
Base::GiveFocusToChrome();
@@ -231,18 +230,7 @@
}
if (!is_chrome_protocol) {
- CComObject<UrlmonUrlRequest>* new_request = NULL;
- CComObject<UrlmonUrlRequest>::CreateInstance(&new_request);
- new_request->AddRef();
-
- if (SUCCEEDED(new_request->ConnectToExistingMoniker(moniker_name,
- bind_context,
- url))) {
- base_url_request_.swap(&new_request);
- DCHECK(new_request == NULL);
- } else {
- new_request->Release();
- }
+ url_fetcher_.UseMonikerForUrl(moniker_name, bind_context, url);
}
UMA_HISTOGRAM_CUSTOM_COUNTS("ChromeFrame.FullTabLaunchType",
@@ -873,12 +861,15 @@
}
}
- if (!is_automation_client_reused_ &&
- !InitializeAutomation(GetHostProcessName(false), L"", IsIEInPrivate())) {
- return false;
- }
+ if (is_automation_client_reused_)
+ return true;
- return true;
+ automation_client_->SetUrlFetcher(&url_fetcher_);
+
+ if (InitializeAutomation(GetHostProcessName(false), L"", IsIEInPrivate()))
+ return true;
+
+ return false;
}
HRESULT ChromeActiveDocument::SetPageFontSize(const GUID* cmd_group_guid,
« no previous file with comments | « chrome_frame/chrome_active_document.h ('k') | chrome_frame/chrome_frame.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698