| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <atlctl.h> | 10 #include <atlctl.h> |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 if (web_browser2) { | 383 if (web_browser2) { |
| 384 web_browser2->put_Visible(VARIANT_TRUE); | 384 web_browser2->put_Visible(VARIANT_TRUE); |
| 385 HWND ie_window = NULL; | 385 HWND ie_window = NULL; |
| 386 web_browser2->get_HWND(reinterpret_cast<long*>(&ie_window)); | 386 web_browser2->get_HWND(reinterpret_cast<long*>(&ie_window)); |
| 387 ::BringWindowToTop(ie_window); | 387 ::BringWindowToTop(ie_window); |
| 388 } | 388 } |
| 389 } | 389 } |
| 390 | 390 |
| 391 protected: | 391 protected: |
| 392 virtual void GetProfilePath(const std::wstring& profile_name, | 392 virtual void GetProfilePath(const std::wstring& profile_name, |
| 393 FilePath* profile_path) { | 393 base::FilePath* profile_path) { |
| 394 bool is_IE = (lstrcmpi(profile_name.c_str(), kIexploreProfileName) == 0) || | 394 bool is_IE = (lstrcmpi(profile_name.c_str(), kIexploreProfileName) == 0) || |
| 395 (lstrcmpi(profile_name.c_str(), kRundllProfileName) == 0); | 395 (lstrcmpi(profile_name.c_str(), kRundllProfileName) == 0); |
| 396 // Browsers without IDeleteBrowsingHistory in non-priv mode | 396 // Browsers without IDeleteBrowsingHistory in non-priv mode |
| 397 // have their profiles moved into "Temporary Internet Files". | 397 // have their profiles moved into "Temporary Internet Files". |
| 398 if (is_IE && GetIEVersion() < IE_8) { | 398 if (is_IE && GetIEVersion() < IE_8) { |
| 399 *profile_path = GetIETemporaryFilesFolder(); | 399 *profile_path = GetIETemporaryFilesFolder(); |
| 400 *profile_path = profile_path->Append(L"Google Chrome Frame"); | 400 *profile_path = profile_path->Append(L"Google Chrome Frame"); |
| 401 } else { | 401 } else { |
| 402 ChromeFramePlugin::GetProfilePath(profile_name, profile_path); | 402 ChromeFramePlugin::GetProfilePath(profile_name, profile_path); |
| 403 } | 403 } |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 EventHandlers onreadystatechanged_; | 1219 EventHandlers onreadystatechanged_; |
| 1220 EventHandlers onprivatemessage_; | 1220 EventHandlers onprivatemessage_; |
| 1221 EventHandlers onextensionready_; | 1221 EventHandlers onextensionready_; |
| 1222 | 1222 |
| 1223 // Handle network requests when host network stack is used. Passed to the | 1223 // Handle network requests when host network stack is used. Passed to the |
| 1224 // automation client on initialization. | 1224 // automation client on initialization. |
| 1225 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; | 1225 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; |
| 1226 }; | 1226 }; |
| 1227 | 1227 |
| 1228 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 1228 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| OLD | NEW |