Chromium Code Reviews| Index: chrome/browser/ui/android/navigation_popup.h |
| diff --git a/chrome/browser/ui/android/navigation_popup.h b/chrome/browser/ui/android/navigation_popup.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d4a41a749edb0eaae4a6ca559b0993ad4051e42e |
| --- /dev/null |
| +++ b/chrome/browser/ui/android/navigation_popup.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2012 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 CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_ |
| +#define CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_ |
| + |
| +#include <jni.h> |
| + |
| +#include "base/android/jni_helper.h" |
| +#include "base/basictypes.h" |
| +#include "chrome/common/cancelable_task_tracker.h" |
| + |
| +class GURL; |
| + |
| +namespace history { |
| +class FaviconImageResult; |
| +} |
| + |
| +class NavigationPopup { |
| + public: |
| + NavigationPopup(JNIEnv* env, jobject obj); |
| + virtual ~NavigationPopup(); |
|
David Trainor- moved to gerrit
2013/01/03 18:57:31
If this can't be destroyed by anything but Destroy
Ted C
2013/01/03 19:56:41
Done.
|
| + |
| + void Destroy(JNIEnv* env, jobject obj); |
| + void FetchFaviconForUrl(JNIEnv* env, jobject obj, jstring jurl); |
| + |
| + void OnFaviconDataAvailable(GURL navigation_entry_url, |
| + const history::FaviconImageResult& image_result); |
| + |
| + static bool RegisterNavigationPopup(JNIEnv* env); |
| + |
| + private: |
| + JavaObjectWeakGlobalRef weak_jobject_; |
| + |
| + CancelableTaskTracker cancelable_task_tracker_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(NavigationPopup); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_ |