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

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

Issue 6390087684194304: [superseded] Issue 1265 - Improve detection of mime type of the expected response (Closed)
Patch Set: restore assuming XHR request type when xml is queried Created Sept. 11, 2014, 9:44 a.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 #include <cstdint> 2 #include <cstdint>
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 WBPassthruSink();
14 15
15 uint64_t m_currentPositionOfSentPage; 16 uint64_t m_currentPositionOfSentPage;
16 CComPtr<IInternetProtocol> m_pTargetProtocol; 17 CComPtr<IInternetProtocol> m_pTargetProtocol;
18 int m_contentType;
19 CString m_boundDomain;
17 20
18 int GetContentTypeFromMimeType(CString mimeType); 21 » int GetContentTypeFromMimeType(const CString& mimeType);
19 int GetContentTypeFromURL(CString src); 22 » int GetContentTypeFromURL(const CString& src);
20 int GetContentType(CString mimeType, CString domain, CString src); 23 » int GetContentType(const CString& mimeType, const CString& domain, const CString& src);
21 public: 24 public:
22 BEGIN_COM_MAP(WBPassthruSink) 25 BEGIN_COM_MAP(WBPassthruSink)
23 COM_INTERFACE_ENTRY(IHttpNegotiate) 26 COM_INTERFACE_ENTRY(IHttpNegotiate)
24 COM_INTERFACE_ENTRY_CHAIN(BaseClass) 27 COM_INTERFACE_ENTRY_CHAIN(BaseClass)
25 END_COM_MAP() 28 END_COM_MAP()
26 29
27 BEGIN_SERVICE_MAP(WBPassthruSink) 30 BEGIN_SERVICE_MAP(WBPassthruSink)
28 SERVICE_ENTRY(IID_IHttpNegotiate) 31 SERVICE_ENTRY(IID_IHttpNegotiate)
29 END_SERVICE_MAP() 32 END_SERVICE_MAP()
30 33
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 IInternetBindInfo *pOIBindInfo, DWORD grfPI, HANDLE_PTR dwReserved) override ; 68 IInternetBindInfo *pOIBindInfo, DWORD grfPI, HANDLE_PTR dwReserved) override ;
66 69
67 //IInternetProtocol 70 //IInternetProtocol
68 STDMETHODIMP Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [out] */ ULO NG *pcbRead) override; 71 STDMETHODIMP Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [out] */ ULO NG *pcbRead) override;
69 72
70 STDMETHODIMP LockRequest(/* [in] */ DWORD dwOptions) override; 73 STDMETHODIMP LockRequest(/* [in] */ DWORD dwOptions) override;
71 STDMETHODIMP UnlockRequest() override; 74 STDMETHODIMP UnlockRequest() override;
72 75
73 bool m_shouldSupplyCustomContent; 76 bool m_shouldSupplyCustomContent;
74 }; 77 };
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