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

Side by Side Diff: public/platform/WebApplicationCacheHost.h

Issue 618583002: Correct data size argument type in resource loading path to unsigned (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed #4 and removed assert from XMLHttpRequest.cpp Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 virtual void willStartSubResourceRequest(WebURLRequest&) { } 88 virtual void willStartSubResourceRequest(WebURLRequest&) { }
89 89
90 // One or the other selectCache methods is called after having parsed the <h tml> tag. 90 // One or the other selectCache methods is called after having parsed the <h tml> tag.
91 // The latter returns false if the current document has been identified as a "foreign" 91 // The latter returns false if the current document has been identified as a "foreign"
92 // entry, in which case the frame navigation will be restarted by webkit. 92 // entry, in which case the frame navigation will be restarted by webkit.
93 virtual void selectCacheWithoutManifest() { } 93 virtual void selectCacheWithoutManifest() { }
94 virtual bool selectCacheWithManifest(const WebURL& manifestURL) { return tru e; } 94 virtual bool selectCacheWithManifest(const WebURL& manifestURL) { return tru e; }
95 95
96 // Called as the main resource is retrieved. 96 // Called as the main resource is retrieved.
97 virtual void didReceiveResponseForMainResource(const WebURLResponse&) { } 97 virtual void didReceiveResponseForMainResource(const WebURLResponse&) { }
98 virtual void didReceiveDataForMainResource(const char* data, int len) { } 98 virtual void didReceiveDataForMainResource(const char* data, unsigned len) { }
99 virtual void didFinishLoadingMainResource(bool success) { } 99 virtual void didFinishLoadingMainResource(bool success) { }
100 100
101 // Called on behalf of the scriptable interface. 101 // Called on behalf of the scriptable interface.
102 virtual Status status() { return Uncached; } 102 virtual Status status() { return Uncached; }
103 virtual bool startUpdate() { return false; } 103 virtual bool startUpdate() { return false; }
104 virtual bool swapCache() { return false; } 104 virtual bool swapCache() { return false; }
105 virtual void abort() { } 105 virtual void abort() { }
106 106
107 // Structures and methods to support inspecting Application Caches. 107 // Structures and methods to support inspecting Application Caches.
108 struct CacheInfo { 108 struct CacheInfo {
(...skipping 14 matching lines...) Expand all
123 ResourceInfo() : size(0), isMaster(false), isManifest(false), isExplicit (false), isForeign(false), isFallback(false) { } 123 ResourceInfo() : size(0), isMaster(false), isManifest(false), isExplicit (false), isForeign(false), isFallback(false) { }
124 }; 124 };
125 virtual void getAssociatedCacheInfo(CacheInfo*) { } 125 virtual void getAssociatedCacheInfo(CacheInfo*) { }
126 virtual void getResourceList(WebVector<ResourceInfo>*) { } 126 virtual void getResourceList(WebVector<ResourceInfo>*) { }
127 virtual void deleteAssociatedCacheGroup() { } 127 virtual void deleteAssociatedCacheGroup() { }
128 }; 128 };
129 129
130 } // namespace blink 130 } // namespace blink
131 131
132 #endif // WebApplicationCacheHost_h 132 #endif // WebApplicationCacheHost_h
OLDNEW
« Source/core/xml/XMLHttpRequest.cpp ('K') | « Source/web/AssociatedURLLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698