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 #include "public/platform/WebContentSettingCallbacks.h" | 5 #include "public/platform/WebContentSettingCallbacks.h" |
6 | 6 |
7 #include "platform/ContentSettingCallbacks.h" | 7 #include "platform/ContentSettingCallbacks.h" |
| 8 #include "wtf/RefCounted.h" |
8 | 9 |
9 namespace blink { | 10 namespace blink { |
10 | 11 |
11 class WebContentSettingCallbacksPrivate : public RefCounted<WebContentSettingCal
lbacksPrivate> { | 12 class WebContentSettingCallbacksPrivate : public RefCounted<WebContentSettingCal
lbacksPrivate> { |
12 public: | 13 public: |
13 static PassRefPtr<WebContentSettingCallbacksPrivate> create(const PassOwnPtr
<ContentSettingCallbacks>& callbacks) | 14 static PassRefPtr<WebContentSettingCallbacksPrivate> create(const PassOwnPtr
<ContentSettingCallbacks>& callbacks) |
14 { | 15 { |
15 return adoptRef(new WebContentSettingCallbacksPrivate(callbacks)); | 16 return adoptRef(new WebContentSettingCallbacksPrivate(callbacks)); |
16 } | 17 } |
17 | 18 |
(...skipping 27 matching lines...) Expand all Loading... |
45 } | 46 } |
46 | 47 |
47 void WebContentSettingCallbacks::doDeny() | 48 void WebContentSettingCallbacks::doDeny() |
48 { | 49 { |
49 ASSERT(!m_private.isNull()); | 50 ASSERT(!m_private.isNull()); |
50 m_private->callbacks()->onDenied(); | 51 m_private->callbacks()->onDenied(); |
51 m_private.reset(); | 52 m_private.reset(); |
52 } | 53 } |
53 | 54 |
54 } // namespace blink | 55 } // namespace blink |
OLD | NEW |