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

Side by Side Diff: android_webview/native/aw_contents_lifecycle_notifier.h

Issue 2202783002: android_webview: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: android_webview: Remove unneeded RegisterNatives() calls Created 4 years, 4 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 #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
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents_io_thread_client_impl.cc ('k') | android_webview/native/aw_contents_lifecycle_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698