OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 return true; | 1074 return true; |
1075 | 1075 |
1076 automation_client_->SetUrlFetcher(url_fetcher_.get()); | 1076 automation_client_->SetUrlFetcher(url_fetcher_.get()); |
1077 if (launch_params_) { | 1077 if (launch_params_) { |
1078 return automation_client_->Initialize(this, launch_params_); | 1078 return automation_client_->Initialize(this, launch_params_); |
1079 } else { | 1079 } else { |
1080 std::wstring profile = UTF8ToWide(cf_url.profile_name()); | 1080 std::wstring profile = UTF8ToWide(cf_url.profile_name()); |
1081 // If no profile was given, then make use of the host process's name. | 1081 // If no profile was given, then make use of the host process's name. |
1082 if (profile.empty()) | 1082 if (profile.empty()) |
1083 profile = GetHostProcessName(false); | 1083 profile = GetHostProcessName(false); |
1084 return InitializeAutomation(profile, L"", IsIEInPrivate(), | 1084 return InitializeAutomation(profile, IsIEInPrivate(), |
1085 false, cf_url.gurl(), GURL(referrer), | 1085 false, cf_url.gurl(), GURL(referrer), |
1086 false); | 1086 false); |
1087 } | 1087 } |
1088 } | 1088 } |
1089 | 1089 |
1090 HRESULT ChromeActiveDocument::OnRefreshPage(const GUID* cmd_group_guid, | 1090 HRESULT ChromeActiveDocument::OnRefreshPage(const GUID* cmd_group_guid, |
1091 DWORD command_id, DWORD cmd_exec_opt, VARIANT* in_args, VARIANT* out_args) { | 1091 DWORD command_id, DWORD cmd_exec_opt, VARIANT* in_args, VARIANT* out_args) { |
1092 DVLOG(1) << __FUNCTION__; | 1092 DVLOG(1) << __FUNCTION__; |
1093 popup_allowed_ = false; | 1093 popup_allowed_ = false; |
1094 if (in_args->vt == VT_I4 && | 1094 if (in_args->vt == VT_I4 && |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1404 return true; | 1404 return true; |
1405 | 1405 |
1406 if (new_navigation_info.url != navigation_info_->url) | 1406 if (new_navigation_info.url != navigation_info_->url) |
1407 return true; | 1407 return true; |
1408 | 1408 |
1409 if (new_navigation_info.referrer != navigation_info_->referrer) | 1409 if (new_navigation_info.referrer != navigation_info_->referrer) |
1410 return true; | 1410 return true; |
1411 | 1411 |
1412 return false; | 1412 return false; |
1413 } | 1413 } |
OLD | NEW |