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

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

Issue 4912420225024000: Issue #1234 - Convert strings associated with URL's (Closed)
Patch Set: Created Oct. 21, 2014, 5:18 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
« no previous file with comments | « src/plugin/PluginTabBase.cpp ('k') | src/plugin/PluginWbPassThrough.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, CComM ultiThreadModel>, 8 public PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink, CComM ultiThreadModel>,
9 public IHttpNegotiate 9 public IHttpNegotiate
10 { 10 {
11 typedef PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink, CCom MultiThreadModel> BaseClass; 11 typedef PassthroughAPP::CInternetProtocolSinkWithSP<WBPassthruSink, CCom MultiThreadModel> BaseClass;
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(CString mimeType);
20 int GetContentTypeFromURL(CString src); 20 int GetContentTypeFromURL(const std::wstring& src);
21 int GetContentType(CString mimeType, std::wstring domain, CString src); 21 int GetContentType(CString mimeType, const std::wstring& domain, const std::ws tring& src);
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 28 matching lines...) Expand all
60 class WBPassthru : public PassthroughAPP::CInternetProtocol<WBStartPolicy> 60 class WBPassthru : public PassthroughAPP::CInternetProtocol<WBStartPolicy>
61 { 61 {
62 public: 62 public:
63 // IInternetProtocolRoot 63 // IInternetProtocolRoot
64 STDMETHODIMP Start(LPCWSTR szUrl, IInternetProtocolSink *pOIProtSink, 64 STDMETHODIMP Start(LPCWSTR szUrl, IInternetProtocolSink *pOIProtSink,
65 IInternetBindInfo *pOIBindInfo, DWORD grfPI, HANDLE_PTR dwReserved); 65 IInternetBindInfo *pOIBindInfo, DWORD grfPI, HANDLE_PTR dwReserved);
66 66
67 //IInternetProtocol 67 //IInternetProtocol
68 STDMETHODIMP Read( /* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [out] */ ULONG *pcbRead); 68 STDMETHODIMP Read( /* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [out] */ ULONG *pcbRead);
69 }; 69 };
OLDNEW
« no previous file with comments | « src/plugin/PluginTabBase.cpp ('k') | src/plugin/PluginWbPassThrough.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld