OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 | 1000 |
1001 DLOG(INFO) << "Url is " << url_; | 1001 DLOG(INFO) << "Url is " << url_; |
1002 } | 1002 } |
1003 } | 1003 } |
1004 | 1004 |
1005 if (is_automation_client_reused_) | 1005 if (is_automation_client_reused_) |
1006 return true; | 1006 return true; |
1007 | 1007 |
1008 automation_client_->SetUrlFetcher(&url_fetcher_); | 1008 automation_client_->SetUrlFetcher(&url_fetcher_); |
1009 | 1009 |
1010 if (InitializeAutomation(GetHostProcessName(false), L"", IsIEInPrivate())) | 1010 if (InitializeAutomation(GetHostProcessName(false), L"", IsIEInPrivate(), |
| 1011 false)) |
1011 return true; | 1012 return true; |
1012 | 1013 |
1013 return false; | 1014 return false; |
1014 } | 1015 } |
1015 | 1016 |
1016 | 1017 |
1017 HRESULT ChromeActiveDocument::OnRefreshPage(const GUID* cmd_group_guid, | 1018 HRESULT ChromeActiveDocument::OnRefreshPage(const GUID* cmd_group_guid, |
1018 DWORD command_id, DWORD cmd_exec_opt, VARIANT* in_args, VARIANT* out_args) { | 1019 DWORD command_id, DWORD cmd_exec_opt, VARIANT* in_args, VARIANT* out_args) { |
1019 popup_allowed_ = false; | 1020 popup_allowed_ = false; |
1020 if (in_args->vt == VT_I4 && | 1021 if (in_args->vt == VT_I4 && |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 ScopedComPtr<ITridentService2> trident_services; | 1166 ScopedComPtr<ITridentService2> trident_services; |
1166 trident_services.QueryFrom(shell_browser); | 1167 trident_services.QueryFrom(shell_browser); |
1167 if (trident_services) { | 1168 if (trident_services) { |
1168 trident_services->FirePrivacyImpactedStateChange(wparam); | 1169 trident_services->FirePrivacyImpactedStateChange(wparam); |
1169 } else { | 1170 } else { |
1170 NOTREACHED() << "Failed to retrieve IWebBrowser2 interface."; | 1171 NOTREACHED() << "Failed to retrieve IWebBrowser2 interface."; |
1171 } | 1172 } |
1172 return 0; | 1173 return 0; |
1173 } | 1174 } |
1174 | 1175 |
OLD | NEW |