timvolodine | 08ac6e2 | 2015-12-02 15:05:21 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
ctzsm | 0baa01d | 2017-05-09 04:27:37 | [diff] [blame] | 5 | #include "android_webview/browser/aw_contents_lifecycle_notifier.h" |
timvolodine | 08ac6e2 | 2015-12-02 15:05:21 | [diff] [blame] | 6 | |
| 7 | #include "jni/AwContentsLifecycleNotifier_jni.h" |
| 8 | |
| 9 | using base::android::AttachCurrentThread; |
| 10 | |
| 11 | namespace android_webview { |
| 12 | |
timvolodine | 08ac6e2 | 2015-12-02 15:05:21 | [diff] [blame] | 13 | // static |
| 14 | void AwContentsLifecycleNotifier::OnWebViewCreated() { |
| 15 | Java_AwContentsLifecycleNotifier_onWebViewCreated(AttachCurrentThread()); |
| 16 | } |
| 17 | |
| 18 | // static |
| 19 | void AwContentsLifecycleNotifier::OnWebViewDestroyed() { |
| 20 | Java_AwContentsLifecycleNotifier_onWebViewDestroyed(AttachCurrentThread()); |
| 21 | } |
| 22 | |
| 23 | } // namespace android_webview |