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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebContentSettingCallbacks.cpp

Issue 1882003002: include RefCounted.h where needed, only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 8 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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698