| 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_LIFECYCLE_OBSERVER_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_LIFECYCLE_OBSERVER_H_ | 
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_LIFECYCLE_OBSERVER_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_LIFECYCLE_OBSERVER_H_ | 
| 7 | 7 | 
| 8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" | 
| 9 #include "base/macros.h" | 9 #include "base/macros.h" | 
| 10 | 10 | 
| 11 namespace android_webview { | 11 namespace android_webview { | 
| 12 | 12 | 
| 13 class AwContentsLifecycleNotifier { | 13 class AwContentsLifecycleNotifier { | 
| 14  public: | 14  public: | 
| 15   static void OnWebViewCreated(); | 15   static void OnWebViewCreated(); | 
| 16   static void OnWebViewDestroyed(); | 16   static void OnWebViewDestroyed(); | 
| 17 | 17 | 
| 18  private: | 18  private: | 
| 19   DISALLOW_IMPLICIT_CONSTRUCTORS(AwContentsLifecycleNotifier); | 19   DISALLOW_IMPLICIT_CONSTRUCTORS(AwContentsLifecycleNotifier); | 
| 20 }; | 20 }; | 
| 21 | 21 | 
| 22 bool RegisterAwContentsLifecycleNotifier(JNIEnv* env); |  | 
| 23 |  | 
| 24 }  // namespace android_webview | 22 }  // namespace android_webview | 
| 25 | 23 | 
| 26 #endif | 24 #endif | 
| OLD | NEW | 
|---|