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

Unified Diff: third_party/WebKit/Source/core/fetch/MockResourceClient.h

Issue 2559703002: Loading: split MockResourceClients into multiple files type by type (Closed)
Patch Set: [rebase to trunk] Created 4 years 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
Index: third_party/WebKit/Source/core/fetch/MockResourceClient.h
diff --git a/third_party/WebKit/Source/core/fetch/MockResourceClients.h b/third_party/WebKit/Source/core/fetch/MockResourceClient.h
similarity index 66%
rename from third_party/WebKit/Source/core/fetch/MockResourceClients.h
rename to third_party/WebKit/Source/core/fetch/MockResourceClient.h
index 90fe127837a0340a7e287605568bee099fd9ecfe..f6d9c0a9b4b4a23ac612a617497f12ef8036c7d0 100644
--- a/third_party/WebKit/Source/core/fetch/MockResourceClients.h
+++ b/third_party/WebKit/Source/core/fetch/MockResourceClient.h
@@ -28,12 +28,9 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MockResourceClients_h
-#define MockResourceClients_h
+#ifndef MockResourceClient_h
+#define MockResourceClient_h
-#include "core/fetch/ImageResource.h"
-#include "core/fetch/ImageResourceContent.h"
-#include "core/fetch/ImageResourceObserver.h"
#include "core/fetch/Resource.h"
#include "core/fetch/ResourceClient.h"
#include "platform/heap/Handle.h"
@@ -68,39 +65,6 @@ class MockResourceClient : public GarbageCollectedFinalized<MockResourceClient>,
size_t m_encodedSizeOnNotifyFinished;
};
-class MockImageResourceClient final : public MockResourceClient,
- public ImageResourceObserver {
- public:
- explicit MockImageResourceClient(ImageResource*);
- ~MockImageResourceClient() override;
-
- void imageNotifyFinished(ImageResourceContent*) override;
- void imageChanged(ImageResourceContent*, const IntRect*) override;
-
- String debugName() const override { return "MockImageResourceClient"; }
-
- bool notifyFinishedCalled() const override;
-
- void removeAsClient() override;
- void dispose() override;
-
- int imageChangedCount() const { return m_imageChangedCount; }
- int imageNotifyFinishedCount() const { return m_imageNotifyFinishedCount; }
-
- size_t encodedSizeOnLastImageChanged() const {
- return m_encodedSizeOnLastImageChanged;
- }
- size_t encodedSizeOnImageNotifyFinished() const {
- return m_encodedSizeOnImageNotifyFinished;
- }
-
- private:
- int m_imageChangedCount;
- size_t m_encodedSizeOnLastImageChanged;
- int m_imageNotifyFinishedCount;
- size_t m_encodedSizeOnImageNotifyFinished;
-};
-
} // namespace blink
-#endif // MockResourceClients_h
+#endif // MockResourceClient_h

Powered by Google App Engine
This is Rietveld 408576698