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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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"
15 #include "wtf/RefPtr.h" 13 #include "wtf/RefPtr.h"
14 #include <memory>
16 15
17 class SkBitmap; 16 class SkBitmap;
18 17
19 namespace blink { 18 namespace blink {
20 19
21 class ExecutionContext; 20 class ExecutionContext;
22 class KURL; 21 class KURL;
23 class ResourceError; 22 class ResourceError;
24 23
25 // Asynchronously downloads an image when given a url, decodes the loaded data, 24 // Asynchronously downloads an image when given a url, decodes the loaded data,
(...skipping 23 matching lines...) Expand all
49 48
50 DEFINE_INLINE_TRACE() {} 49 DEFINE_INLINE_TRACE() {}
51 50
52 private: 51 private:
53 void runCallbackWithEmptyBitmap(); 52 void runCallbackWithEmptyBitmap();
54 53
55 bool m_stopped; 54 bool m_stopped;
56 double m_startTime; 55 double m_startTime;
57 RefPtr<SharedBuffer> m_data; 56 RefPtr<SharedBuffer> m_data;
58 std::unique_ptr<ImageCallback> m_imageCallback; 57 std::unique_ptr<ImageCallback> m_imageCallback;
59 OwnPtr<ThreadableLoader> m_threadableLoader; 58 std::unique_ptr<ThreadableLoader> m_threadableLoader;
60 }; 59 };
61 60
62 } // namespace blink 61 } // namespace blink
63 62
64 #endif // NotificationImageLoader_h 63 #endif // NotificationImageLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698