| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "android_webview/native/aw_web_contents_delegate.h" | 5 #include "android_webview/native/aw_web_contents_delegate.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" |
| 8 #include "android_webview/native/aw_javascript_dialog_creator.h" |
| 9 |
| 7 namespace android_webview { | 10 namespace android_webview { |
| 8 | 11 |
| 12 static base::LazyInstance<AwJavaScriptDialogCreator>::Leaky |
| 13 g_javascript_dialog_creator = LAZY_INSTANCE_INITIALIZER; |
| 14 |
| 9 AwWebContentsDelegate::AwWebContentsDelegate( | 15 AwWebContentsDelegate::AwWebContentsDelegate( |
| 10 JNIEnv* env, | 16 JNIEnv* env, |
| 11 jobject obj) | 17 jobject obj) |
| 12 : WebContentsDelegateAndroid(env, obj) { | 18 : WebContentsDelegateAndroid(env, obj) { |
| 13 } | 19 } |
| 14 | 20 |
| 15 AwWebContentsDelegate::~AwWebContentsDelegate() { | 21 AwWebContentsDelegate::~AwWebContentsDelegate() { |
| 16 } | 22 } |
| 17 | 23 |
| 24 content::JavaScriptDialogCreator* |
| 25 AwWebContentsDelegate::GetJavaScriptDialogCreator() { |
| 26 return g_javascript_dialog_creator.Pointer(); |
| 27 } |
| 28 |
| 18 } // namespace android_webview | 29 } // namespace android_webview |
| OLD | NEW |