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

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

Issue 2181243002: Move ThreadableLoader to Oilpan heap (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onheap-bridge-peer-in-worker-threadable-loader
Patch Set: fix Created 4 years, 4 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 // 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 28 matching lines...) Expand all
39 // Cancels the pending load, if there is one. The |m_imageCallback| will not 39 // Cancels the pending load, if there is one. The |m_imageCallback| will not
40 // be run. 40 // be run.
41 void stop(); 41 void stop();
42 42
43 // ThreadableLoaderClient interface. 43 // ThreadableLoaderClient interface.
44 void didReceiveData(const char* data, unsigned length) override; 44 void didReceiveData(const char* data, unsigned length) override;
45 void didFinishLoading(unsigned long resourceIdentifier, double finishTime) o verride; 45 void didFinishLoading(unsigned long resourceIdentifier, double finishTime) o verride;
46 void didFail(const ResourceError&) override; 46 void didFail(const ResourceError&) override;
47 void didFailRedirectCheck() override; 47 void didFailRedirectCheck() override;
48 48
49 DEFINE_INLINE_TRACE() {} 49 DEFINE_INLINE_TRACE()
50 {
51 visitor->trace(m_threadableLoader);
52 }
50 53
51 private: 54 private:
52 void runCallbackWithEmptyBitmap(); 55 void runCallbackWithEmptyBitmap();
53 56
54 bool m_stopped; 57 bool m_stopped;
55 double m_startTime; 58 double m_startTime;
56 RefPtr<SharedBuffer> m_data; 59 RefPtr<SharedBuffer> m_data;
57 std::unique_ptr<ImageCallback> m_imageCallback; 60 std::unique_ptr<ImageCallback> m_imageCallback;
58 std::unique_ptr<ThreadableLoader> m_threadableLoader; 61 Member<ThreadableLoader> m_threadableLoader;
59 }; 62 };
60 63
61 } // namespace blink 64 } // namespace blink
62 65
63 #endif // NotificationImageLoader_h 66 #endif // NotificationImageLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698