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

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

Issue 5020125841326080: Issue 1669 - Report blocked object subrequests as failed, not as empty HTML (Closed)
Patch Set: Moved to WBPassthruSink::BeginningTransaction. Renamed the m_blockedInTransaction. Created Dec. 9, 2014, 10:16 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 | « no previous file | 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 WBPassthruSink();
15 15
16 uint64_t m_currentPositionOfSentPage; 16 uint64_t m_currentPositionOfSentPage;
17 CComPtr<IInternetProtocol> m_pTargetProtocol; 17 CComPtr<IInternetProtocol> m_pTargetProtocol;
18 int m_contentType; 18 int m_contentType;
19 std::wstring m_boundDomain; 19 std::wstring m_boundDomain;
20 » bool m_blockedInTransaction; 20 » bool m_isCustomResponse;
21 21
22 int GetContentTypeFromMimeType(const CString& mimeType); 22 int GetContentTypeFromMimeType(const CString& mimeType);
23 int GetContentTypeFromURL(const CString& src); 23 int GetContentTypeFromURL(const CString& src);
24 int GetContentType(const CString& mimeType, const std::wstring& domain, const CString& src); 24 int GetContentType(const CString& mimeType, const std::wstring& domain, const CString& src);
25 bool IsFlashRequest(const wchar_t* const* additionalHeaders); 25 bool IsFlashRequest(const wchar_t* const* additionalHeaders);
26 public: 26 public:
27 BEGIN_COM_MAP(WBPassthruSink) 27 BEGIN_COM_MAP(WBPassthruSink)
28 COM_INTERFACE_ENTRY(IHttpNegotiate) 28 COM_INTERFACE_ENTRY(IHttpNegotiate)
29 COM_INTERFACE_ENTRY_CHAIN(BaseClass) 29 COM_INTERFACE_ENTRY_CHAIN(BaseClass)
30 END_COM_MAP() 30 END_COM_MAP()
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 WBPassthru(); 73 WBPassthru();
74 // IInternetProtocolRoot 74 // IInternetProtocolRoot
75 STDMETHODIMP Start(LPCWSTR szUrl, IInternetProtocolSink *pOIProtSink, 75 STDMETHODIMP Start(LPCWSTR szUrl, IInternetProtocolSink *pOIProtSink,
76 IInternetBindInfo *pOIBindInfo, DWORD grfPI, HANDLE_PTR dwReserved) override ; 76 IInternetBindInfo *pOIBindInfo, DWORD grfPI, HANDLE_PTR dwReserved) override ;
77 77
78 //IInternetProtocol 78 //IInternetProtocol
79 STDMETHODIMP Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [out] */ ULO NG *pcbRead) override; 79 STDMETHODIMP Read(/* [in, out] */ void *pv,/* [in] */ ULONG cb,/* [out] */ ULO NG *pcbRead) override;
80 80
81 bool m_shouldSupplyCustomContent; 81 bool m_shouldSupplyCustomContent;
82 }; 82 };
OLDNEW
« no previous file with comments | « no previous file | src/plugin/PluginWbPassThrough.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld