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

Unified Diff: content/browser/android/web_contents_observer_proxy.h

Issue 786933005: [Android] Add proxy for Java-based WebContentsObservers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/web_contents_observer_proxy.h
diff --git a/content/browser/android/web_contents_observer_android.h b/content/browser/android/web_contents_observer_proxy.h
similarity index 83%
rename from content/browser/android/web_contents_observer_android.h
rename to content/browser/android/web_contents_observer_proxy.h
index 3f5d11100e2deb4ec7aaab17211f55fd4cbe85fe..1d45011d34491fa20fcae6ecaa2a9fcdd40c3929 100644
--- a/content/browser/android/web_contents_observer_android.h
+++ b/content/browser/android/web_contents_observer_proxy.h
@@ -1,9 +1,9 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_
-#define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_
+#ifndef CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_
+#define CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_
#include <jni.h>
@@ -22,12 +22,10 @@ class WebContents;
// Extends WebContentsObserver for providing a public Java API for some of the
// the calls it receives.
-class WebContentsObserverAndroid : public WebContentsObserver {
+class WebContentsObserverProxy : public WebContentsObserver {
public:
- WebContentsObserverAndroid(JNIEnv* env,
- jobject obj,
- WebContents* web_contents);
- ~WebContentsObserverAndroid() override;
+ WebContentsObserverProxy(JNIEnv* env, jobject obj, WebContents* web_contents);
+ ~WebContentsObserverProxy() override;
void Destroy(JNIEnv* env, jobject obj);
@@ -80,10 +78,10 @@ class WebContentsObserverAndroid : public WebContentsObserver {
JavaObjectWeakGlobalRef weak_java_observer_;
- DISALLOW_COPY_AND_ASSIGN(WebContentsObserverAndroid);
+ DISALLOW_COPY_AND_ASSIGN(WebContentsObserverProxy);
};
-bool RegisterWebContentsObserverAndroid(JNIEnv* env);
+bool RegisterWebContentsObserverProxy(JNIEnv* env);
} // namespace content
-#endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_ANDROID_H_
+#endif // CONTENT_BROWSER_ANDROID_WEB_CONTENTS_OBSERVER_PROXY_H_
« no previous file with comments | « content/browser/android/web_contents_observer_android.cc ('k') | content/browser/android/web_contents_observer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698