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

Side by Side Diff: third_party/WebKit/public/platform/WebContentSettingCallbacks.h

Issue 1916703002: Prepare for move-only PassOwnPtr in the remaining directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@core1
Patch Set: Merge with trunk. 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
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 namespace WTF { template <typename T> class PassOwnPtr; } 10 namespace WTF { template <typename T> class PassOwnPtr; }
(...skipping 11 matching lines...) Expand all
22 WebContentSettingCallbacks& operator=(const WebContentSettingCallbacks& c) 22 WebContentSettingCallbacks& operator=(const WebContentSettingCallbacks& c)
23 { 23 {
24 assign(c); 24 assign(c);
25 return *this; 25 return *this;
26 } 26 }
27 27
28 BLINK_PLATFORM_EXPORT void reset(); 28 BLINK_PLATFORM_EXPORT void reset();
29 BLINK_PLATFORM_EXPORT void assign(const WebContentSettingCallbacks&); 29 BLINK_PLATFORM_EXPORT void assign(const WebContentSettingCallbacks&);
30 30
31 #if INSIDE_BLINK 31 #if INSIDE_BLINK
32 BLINK_PLATFORM_EXPORT WebContentSettingCallbacks(const WTF::PassOwnPtr<Conte ntSettingCallbacks>&); 32 BLINK_PLATFORM_EXPORT WebContentSettingCallbacks(WTF::PassOwnPtr<ContentSett ingCallbacks>&&);
jbroman 2016/04/25 15:08:27 drive-by: why PassOwnPtr<T>&& and not PassOwnPtr<T
Yuta Kitamura 2016/04/26 02:57:29 That's explained in the change description.
33 #endif 33 #endif
34 34
35 BLINK_PLATFORM_EXPORT void doAllow(); 35 BLINK_PLATFORM_EXPORT void doAllow();
36 BLINK_PLATFORM_EXPORT void doDeny(); 36 BLINK_PLATFORM_EXPORT void doDeny();
37 37
38 private: 38 private:
39 WebPrivatePtr<WebContentSettingCallbacksPrivate> m_private; 39 WebPrivatePtr<WebContentSettingCallbacksPrivate> m_private;
40 }; 40 };
41 41
42 } // namespace blink 42 } // namespace blink
43 43
44 #endif 44 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698