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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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"
11 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
12 #include "wtf/Functional.h" 12 #include "wtf/Functional.h"
13 #include "wtf/OwnPtr.h"
14 #include "wtf/PassOwnPtr.h"
13 #include "wtf/RefPtr.h" 15 #include "wtf/RefPtr.h"
14 #include <memory>
15 16
16 class SkBitmap; 17 class SkBitmap;
17 18
18 namespace blink { 19 namespace blink {
19 20
20 class ExecutionContext; 21 class ExecutionContext;
21 class KURL; 22 class KURL;
22 class ResourceError; 23 class ResourceError;
23 24
24 // Asynchronously downloads an image when given a url, decodes the loaded data, 25 // Asynchronously downloads an image when given a url, decodes the loaded data,
(...skipping 23 matching lines...) Expand all
48 49
49 DEFINE_INLINE_TRACE() {} 50 DEFINE_INLINE_TRACE() {}
50 51
51 private: 52 private:
52 void runCallbackWithEmptyBitmap(); 53 void runCallbackWithEmptyBitmap();
53 54
54 bool m_stopped; 55 bool m_stopped;
55 double m_startTime; 56 double m_startTime;
56 RefPtr<SharedBuffer> m_data; 57 RefPtr<SharedBuffer> m_data;
57 std::unique_ptr<ImageCallback> m_imageCallback; 58 std::unique_ptr<ImageCallback> m_imageCallback;
58 std::unique_ptr<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

Powered by Google App Engine
This is Rietveld 408576698