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

Side by Side Diff: third_party/WebKit/Source/core/fetch/MockResourceClients.h

Issue 2468883003: [ImageResource 0b] Decouple ImageResourceObserver::imageNotifyFinished() from notifyFinished() (Closed)
Patch Set: Rebase 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void imageChanged(ImageResource*, const IntRect*) override; 76 void imageChanged(ImageResource*, const IntRect*) override;
77 77
78 String debugName() const override { return "MockImageResourceClient"; } 78 String debugName() const override { return "MockImageResourceClient"; }
79 79
80 bool notifyFinishedCalled() const override; 80 bool notifyFinishedCalled() const override;
81 81
82 void removeAsClient() override; 82 void removeAsClient() override;
83 void dispose() override; 83 void dispose() override;
84 84
85 int imageChangedCount() const { return m_imageChangedCount; } 85 int imageChangedCount() const { return m_imageChangedCount; }
86 int imageNotifyFinishedCount() const { return m_imageNotifyFinishedCount; }
86 87
87 size_t encodedSizeOnLastImageChanged() const { 88 size_t encodedSizeOnLastImageChanged() const {
88 return m_encodedSizeOnLastImageChanged; 89 return m_encodedSizeOnLastImageChanged;
89 } 90 }
90 size_t encodedSizeOnImageNotifyFinished() const { 91 size_t encodedSizeOnImageNotifyFinished() const {
91 return m_encodedSizeOnImageNotifyFinished; 92 return m_encodedSizeOnImageNotifyFinished;
92 } 93 }
93 94
94 private: 95 private:
95 int m_imageChangedCount; 96 int m_imageChangedCount;
96 size_t m_encodedSizeOnLastImageChanged; 97 size_t m_encodedSizeOnLastImageChanged;
97 int m_imageNotifyFinishedCount; 98 int m_imageNotifyFinishedCount;
98 size_t m_encodedSizeOnImageNotifyFinished; 99 size_t m_encodedSizeOnImageNotifyFinished;
99 }; 100 };
100 101
101 } // namespace blink 102 } // namespace blink
102 103
103 #endif // MockResourceClients_h 104 #endif // MockResourceClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698