Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |