Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: chrome_frame/urlmon_bind_status_callback.h

Issue 1637017: With the ChromeFrame moniker patch on, the data cache maintained to indicate ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/test/urlmon_moniker_unittest.cc ('k') | chrome_frame/urlmon_bind_status_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/urlmon_bind_status_callback.h
===================================================================
--- chrome_frame/urlmon_bind_status_callback.h (revision 44714)
+++ chrome_frame/urlmon_bind_status_callback.h (working copy)
@@ -21,12 +21,12 @@
COM_INTERFACE_ENTRY(ISequentialStream)
END_COM_MAP()
- CacheStream() : cache_(NULL), size_(0), position_(0) {
+ CacheStream() : cache_(NULL), size_(0), position_(0), eof_(false) {
}
- void Initialize(const char* cache, size_t size);
+ void Initialize(const char* cache, size_t size, bool eof);
static HRESULT BSCBFeedData(IBindStatusCallback* bscb, const char* data,
size_t size, CLIPFORMAT clip_format,
- size_t flags);
+ size_t flags, bool eof);
// IStream overrides
STDMETHOD(Read)(void* pv, ULONG cb, ULONG* read);
@@ -35,6 +35,7 @@
const char* cache_;
size_t size_;
size_t position_;
+ bool eof_;
private:
DISALLOW_COPY_AND_ASSIGN(CacheStream);
@@ -43,7 +44,7 @@
// Utility class for data sniffing
class SniffData {
public:
- SniffData() : renderer_type_(OTHER), size_(0) {}
+ SniffData() : renderer_type_(OTHER), size_(0), eof_(false) {}
enum RendererType {
UNDETERMINED,
@@ -82,6 +83,7 @@
size_t size_;
static const size_t kMaxSniffSize = 2 * 1024;
+ bool eof_;
private:
DISALLOW_COPY_AND_ASSIGN(SniffData);
« no previous file with comments | « chrome_frame/test/urlmon_moniker_unittest.cc ('k') | chrome_frame/urlmon_bind_status_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698