OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // MeasurePageLoadTimeBHO.h : Declaration of the CMeasurePageLoadTimeBHO | 5 // MeasurePageLoadTimeBHO.h : Declaration of the CMeasurePageLoadTimeBHO |
6 | 6 |
7 #pragma once | 7 #pragma once |
8 #include "resource.h" // main symbols | 8 #include "resource.h" // main symbols |
9 | 9 |
10 #include <shlguid.h> // IID_IWebBrowser2, DIID_DWebBrowserEvents2, et | 10 #include <shlguid.h> // IID_IWebBrowser2, DIID_DWebBrowserEvents2, et |
11 #include <exdispid.h> // DISPID_DOCUMENTCOMPLETE, etc. | 11 #include <exdispid.h> // DISPID_DOCUMENTCOMPLETE, etc. |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "MeasurePageLoadTime.h" | 15 #include "MeasurePageLoadTime.h" |
16 | 16 |
17 | 17 |
18 #if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREA
DED_OBJECTS_IN_MTA) | 18 #if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREA
DED_OBJECTS_IN_MTA) |
19 #error "Single-threaded COM objects are not properly supported on Windows CE pla
tform, such as the Windows Mobile platforms that do not include full DCOM suppor
t. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creat
ing single-thread COM object's and allow use of it's single-threaded COM object
implementations. The threading model in your rgs file was set to 'Free' as that
is the only threading model supported in non DCOM Windows CE platforms." | 19 #error "Single-threaded COM objects are not properly supported on Windows CE pla
tform, such as the Windows Mobile platforms that do not include full DCOM suppor
t. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creat
ing single-thread COM objects and allow use of its single-threaded COM object im
plementations. The threading model in your rgs file was set to 'Free' as that is
the only threading model supported in non DCOM Windows CE platforms." |
20 #endif | 20 #endif |
21 | 21 |
22 | 22 |
23 | 23 |
24 // CMeasurePageLoadTimeBHO | 24 // CMeasurePageLoadTimeBHO |
25 | 25 |
26 class ATL_NO_VTABLE CMeasurePageLoadTimeBHO : | 26 class ATL_NO_VTABLE CMeasurePageLoadTimeBHO : |
27 public CComObjectRootEx<CComSingleThreadModel>, | 27 public CComObjectRootEx<CComSingleThreadModel>, |
28 public CComCoClass<CMeasurePageLoadTimeBHO, &CLSID_MeasurePageLoadTimeBH
O>, | 28 public CComCoClass<CMeasurePageLoadTimeBHO, &CLSID_MeasurePageLoadTimeBH
O>, |
29 public IObjectWithSiteImpl<CMeasurePageLoadTimeBHO>, | 29 public IObjectWithSiteImpl<CMeasurePageLoadTimeBHO>, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 HANDLE m_hEvent; | 79 HANDLE m_hEvent; |
80 | 80 |
81 // Socket for accepting incoming connections | 81 // Socket for accepting incoming connections |
82 SOCKET m_sockListen; | 82 SOCKET m_sockListen; |
83 | 83 |
84 // Socket for communicating with remote peers | 84 // Socket for communicating with remote peers |
85 SOCKET m_sockTransport; | 85 SOCKET m_sockTransport; |
86 }; | 86 }; |
87 | 87 |
88 OBJECT_ENTRY_AUTO(__uuidof(MeasurePageLoadTimeBHO), CMeasurePageLoadTimeBHO) | 88 OBJECT_ENTRY_AUTO(__uuidof(MeasurePageLoadTimeBHO), CMeasurePageLoadTimeBHO) |
OLD | NEW |