Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/plugin/PluginWbPassThrough.h

Issue 5750789393874944: [IE] First round of ATL removal (Closed)
Patch Set: Created June 20, 2014, 9:22 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #pragma once 1 #pragma once
2 2
3 #include "ProtocolCF.h" 3 #include "ProtocolCF.h"
4 #include "ProtocolImpl.h" 4 #include "ProtocolImpl.h"
5 #define IE_MAX_URL_LENGTH 2048 5 #define IE_MAX_URL_LENGTH 2048
6 6
7 class WBPassthruSink : 7 class WBPassthruSink :
8 public PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink>, 8 public PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink>,
9 public IHttpNegotiate 9 public IHttpNegotiate
10 { 10 {
11 typedef PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink> Base Class; 11 typedef PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink> Base Class;
12 12
13 public: 13 public:
14 14
15 bool m_shouldBlock; 15 bool m_shouldBlock;
16 bool m_lastDataReported; 16 bool m_lastDataReported;
17 CComPtr<IInternetProtocol> m_pTargetProtocol; 17 CComPtr<IInternetProtocol> m_pTargetProtocol;
18 18
19 int GetContentTypeFromMimeType(CString mimeType); 19 int GetContentTypeFromMimeType( std::wstring mimeType);
20 int GetContentTypeFromURL(CString src); 20 int GetContentTypeFromURL( std::wstring src);
21 int GetContentType(CString mimeType, CString domain, CString src); 21 int GetContentType(std::wstring mimeType, std::wstring domain, std::wstring sr c);
22 public: 22 public:
23 BEGIN_COM_MAP(WBPassthruSink) 23 BEGIN_COM_MAP(WBPassthruSink)
24 COM_INTERFACE_ENTRY(IHttpNegotiate) 24 COM_INTERFACE_ENTRY(IHttpNegotiate)
25 COM_INTERFACE_ENTRY_CHAIN(BaseClass) 25 COM_INTERFACE_ENTRY_CHAIN(BaseClass)
26 END_COM_MAP() 26 END_COM_MAP()
27 27
28 BEGIN_SERVICE_MAP(WBPassthruSink) 28 BEGIN_SERVICE_MAP(WBPassthruSink)
29 SERVICE_ENTRY(IID_IHttpNegotiate) 29 SERVICE_ENTRY(IID_IHttpNegotiate)
30 END_SERVICE_MAP() 30 END_SERVICE_MAP()
31 31
(...skipping 22 matching lines...) Expand all
54 54
55 STDMETHODIMP Switch( 55 STDMETHODIMP Switch(
56 /* [in] */ PROTOCOLDATA *pProtocolData); 56 /* [in] */ PROTOCOLDATA *pProtocolData);
57 }; 57 };
58 58
59 typedef PassthroughAPP::CustomSinkStartPolicy<WBPassthruSink> TestStartPolicy; 59 typedef PassthroughAPP::CustomSinkStartPolicy<WBPassthruSink> TestStartPolicy;
60 60
61 class WBPassthru : public PassthroughAPP::CInternetProtocol<TestStartPolicy> 61 class WBPassthru : public PassthroughAPP::CInternetProtocol<TestStartPolicy>
62 { 62 {
63 }; 63 };
OLDNEW

Powered by Google App Engine
This is Rietveld