diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 12:46:38 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 12:46:38 +0000 |
commit | f0a51fb571f46531025fa09240bbc3e1af925e84 (patch) | |
tree | 558b4f0e737fda4b9ab60f252c9c23b8a4ca523e /tools/measure_page_load_time/ie_bho | |
parent | 6390be368205705f49ead3cec40396519f13b889 (diff) | |
download | chromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.zip chromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.tar.gz chromium_src-f0a51fb571f46531025fa09240bbc3e1af925e84.tar.bz2 |
Fixes CRLF and trailing white spaces.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/measure_page_load_time/ie_bho')
5 files changed, 15 insertions, 15 deletions
diff --git a/tools/measure_page_load_time/ie_bho/MeasurePageLoadTime.cpp b/tools/measure_page_load_time/ie_bho/MeasurePageLoadTime.cpp index 55f4de2..bb2fa51 100644 --- a/tools/measure_page_load_time/ie_bho/MeasurePageLoadTime.cpp +++ b/tools/measure_page_load_time/ie_bho/MeasurePageLoadTime.cpp @@ -55,7 +55,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpRes { DisableThreadLibraryCalls(hInstance); } - return _AtlModule.DllMain(dwReason, lpReserved); + return _AtlModule.DllMain(dwReason, lpReserved); } #ifdef _MANAGED diff --git a/tools/measure_page_load_time/ie_bho/MeasurePageLoadTimeBHO.cpp b/tools/measure_page_load_time/ie_bho/MeasurePageLoadTimeBHO.cpp index 7e9d5c0..a88f1bf 100644 --- a/tools/measure_page_load_time/ie_bho/MeasurePageLoadTimeBHO.cpp +++ b/tools/measure_page_load_time/ie_bho/MeasurePageLoadTimeBHO.cpp @@ -38,7 +38,7 @@ #define MAX_URL 1024 // size of URL buffer #define MAX_PAGELOADTIME (4*60*1000) // assume all pages take < 4 minutes -#define PORT 42492 // port to listen on. Also jhaas's +#define PORT 42492 // port to listen on. Also jhaas's // old MSFT employee number @@ -99,7 +99,7 @@ STDMETHODIMP CMeasurePageLoadTimeBHO::SetSite(IUnknown* pUnkSite) void STDMETHODCALLTYPE CMeasurePageLoadTimeBHO::OnDocumentComplete(IDispatch *pDisp, VARIANT *pvarURL) { - if (pDisp == m_spWebBrowser) + if (pDisp == m_spWebBrowser) { // Fire the event when the page is done loading // to unblock the other thread. @@ -108,7 +108,7 @@ void STDMETHODCALLTYPE CMeasurePageLoadTimeBHO::OnDocumentComplete(IDispatch *pD } -void CMeasurePageLoadTimeBHO::ProcessPageTimeRequests() +void CMeasurePageLoadTimeBHO::ProcessPageTimeRequests() { CoInitialize(NULL); @@ -205,7 +205,7 @@ void CMeasurePageLoadTimeBHO::ProcessPageTimeRequests() fReceivedCR = true; } - // The below call will not block, since we determined with + // The below call will not block, since we determined with // MSG_PEEK that at least cbRead bytes are in the TCP receive buffer recv(m_sockTransport, pbBuffer, cbRead, 0); pbBuffer[cbRead] = '\0'; @@ -250,8 +250,8 @@ void CMeasurePageLoadTimeBHO::ProcessPageTimeRequests() ); // The main browser thread will call OnDocumentComplete() when - // the page is done loading, which will in turn trigger - // m_hEvent. Wait here until then; the event will reset itself + // the page is done loading, which will in turn trigger + // m_hEvent. Wait here until then; the event will reset itself // once this thread is released if (WaitForSingleObject(m_hEvent, MAX_PAGELOADTIME) == WAIT_TIMEOUT) { @@ -297,7 +297,7 @@ void CMeasurePageLoadTimeBHO::ProcessPageTimeRequests() void CMeasurePageLoadTimeBHO::ErrorExit() { - // Unlink from IE, close the sockets, then terminate this + // Unlink from IE, close the sockets, then terminate this // thread SetSite(NULL); @@ -314,4 +314,4 @@ void CMeasurePageLoadTimeBHO::ErrorExit() } TerminateThread(GetCurrentThread(), -1); -}
\ No newline at end of file +} diff --git a/tools/measure_page_load_time/ie_bho/MeasurePageLoadTimeBHO.h b/tools/measure_page_load_time/ie_bho/MeasurePageLoadTimeBHO.h index b6e518a..8fe07ac 100644 --- a/tools/measure_page_load_time/ie_bho/MeasurePageLoadTimeBHO.h +++ b/tools/measure_page_load_time/ie_bho/MeasurePageLoadTimeBHO.h @@ -50,7 +50,7 @@ BEGIN_SINK_MAP(CMeasurePageLoadTimeBHO) END_SINK_MAP() // DWebBrowserEvents2 - void STDMETHODCALLTYPE OnDocumentComplete(IDispatch *pDisp, VARIANT *pvarURL); + void STDMETHODCALLTYPE OnDocumentComplete(IDispatch *pDisp, VARIANT *pvarURL); STDMETHOD(SetSite)(IUnknown *pUnkSite); DECLARE_PROTECT_FINAL_CONSTRUCT() @@ -70,7 +70,7 @@ END_SINK_MAP() private: CComPtr<IWebBrowser2> m_spWebBrowser; - BOOL m_fAdvised; + BOOL m_fAdvised; // Handle to global interface table DWORD m_dwCookie; diff --git a/tools/measure_page_load_time/ie_bho/resource.h b/tools/measure_page_load_time/ie_bho/resource.h index a8004dc..38dc825 100644 --- a/tools/measure_page_load_time/ie_bho/resource.h +++ b/tools/measure_page_load_time/ie_bho/resource.h @@ -7,7 +7,7 @@ #define IDR_MEASUREPAGELOADTIMEBHO 102 // Next default values for new objects -// +// #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 201 diff --git a/tools/measure_page_load_time/ie_bho/stdafx.h b/tools/measure_page_load_time/ie_bho/stdafx.h index 3f26087..a2727ce 100644 --- a/tools/measure_page_load_time/ie_bho/stdafx.h +++ b/tools/measure_page_load_time/ie_bho/stdafx.h @@ -14,9 +14,9 @@ #define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows. #endif -#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. +#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. #define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows. -#endif +#endif #ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later. #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later. @@ -36,4 +36,4 @@ #include <atlbase.h> #include <atlcom.h> -using namespace ATL;
\ No newline at end of file +using namespace ATL; |