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

Side by Side Diff: third_party/WebKit/public/platform/WebContentSettingCallbacks.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 WebContentSettingCallbacks_h 5 #ifndef WebContentSettingCallbacks_h
6 #define WebContentSettingCallbacks_h 6 #define WebContentSettingCallbacks_h
7 7
8 #include "WebPrivatePtr.h" 8 #include "WebPrivatePtr.h"
9 9
10 #if INSIDE_BLINK 10 #if INSIDE_BLINK
11 #include "wtf/OwnPtr.h" 11 #include <memory>
12 #include "wtf/PassOwnPtr.h"
13 #endif 12 #endif
14 13
15 namespace blink { 14 namespace blink {
16 15
17 class ContentSettingCallbacks; 16 class ContentSettingCallbacks;
18 class WebContentSettingCallbacksPrivate; 17 class WebContentSettingCallbacksPrivate;
19 18
20 class WebContentSettingCallbacks { 19 class WebContentSettingCallbacks {
21 public: 20 public:
22 ~WebContentSettingCallbacks() { reset(); } 21 ~WebContentSettingCallbacks() { reset(); }
23 WebContentSettingCallbacks() { } 22 WebContentSettingCallbacks() { }
24 WebContentSettingCallbacks(const WebContentSettingCallbacks& c) { assign(c); } 23 WebContentSettingCallbacks(const WebContentSettingCallbacks& c) { assign(c); }
25 WebContentSettingCallbacks& operator=(const WebContentSettingCallbacks& c) 24 WebContentSettingCallbacks& operator=(const WebContentSettingCallbacks& c)
26 { 25 {
27 assign(c); 26 assign(c);
28 return *this; 27 return *this;
29 } 28 }
30 29
31 BLINK_PLATFORM_EXPORT void reset(); 30 BLINK_PLATFORM_EXPORT void reset();
32 BLINK_PLATFORM_EXPORT void assign(const WebContentSettingCallbacks&); 31 BLINK_PLATFORM_EXPORT void assign(const WebContentSettingCallbacks&);
33 32
34 #if INSIDE_BLINK 33 #if INSIDE_BLINK
35 BLINK_PLATFORM_EXPORT WebContentSettingCallbacks(WTF::PassOwnPtr<ContentSett ingCallbacks>&&); 34 BLINK_PLATFORM_EXPORT WebContentSettingCallbacks(std::unique_ptr<ContentSett ingCallbacks>&&);
36 #endif 35 #endif
37 36
38 BLINK_PLATFORM_EXPORT void doAllow(); 37 BLINK_PLATFORM_EXPORT void doAllow();
39 BLINK_PLATFORM_EXPORT void doDeny(); 38 BLINK_PLATFORM_EXPORT void doDeny();
40 39
41 private: 40 private:
42 WebPrivatePtr<WebContentSettingCallbacksPrivate> m_private; 41 WebPrivatePtr<WebContentSettingCallbacksPrivate> m_private;
43 }; 42 };
44 43
45 } // namespace blink 44 } // namespace blink
46 45
47 #endif 46 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebBlobData.h ('k') | third_party/WebKit/public/platform/WebCryptoAlgorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698