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

Side by Side Diff: third_party/WebKit/Source/modules/notifications/NotificationImageLoader.h

Issue 1904293003: Restore the histograms for notification resource loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/notifications/NotificationImageLoader.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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NotificationImageLoader_h 5 #ifndef NotificationImageLoader_h
6 #define NotificationImageLoader_h 6 #define NotificationImageLoader_h
7 7
8 #include "core/loader/ThreadableLoader.h" 8 #include "core/loader/ThreadableLoader.h"
9 #include "core/loader/ThreadableLoaderClient.h" 9 #include "core/loader/ThreadableLoaderClient.h"
10 #include "platform/SharedBuffer.h" 10 #include "platform/SharedBuffer.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void didFinishLoading(unsigned long resourceIdentifier, double finishTime) o verride; 46 void didFinishLoading(unsigned long resourceIdentifier, double finishTime) o verride;
47 void didFail(const ResourceError&) override; 47 void didFail(const ResourceError&) override;
48 void didFailRedirectCheck() override; 48 void didFailRedirectCheck() override;
49 49
50 DEFINE_INLINE_TRACE() {} 50 DEFINE_INLINE_TRACE() {}
51 51
52 private: 52 private:
53 void runCallbackWithEmptyBitmap(); 53 void runCallbackWithEmptyBitmap();
54 54
55 bool m_stopped; 55 bool m_stopped;
56 double m_startTime;
56 RefPtr<SharedBuffer> m_data; 57 RefPtr<SharedBuffer> m_data;
57 OwnPtr<ImageCallback> m_imageCallback; 58 OwnPtr<ImageCallback> m_imageCallback;
58 OwnPtr<ThreadableLoader> m_threadableLoader; 59 OwnPtr<ThreadableLoader> m_threadableLoader;
59 }; 60 };
60 61
61 } // namespace blink 62 } // namespace blink
62 63
63 #endif // NotificationImageLoader_h 64 #endif // NotificationImageLoader_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/notifications/NotificationImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698