Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / android / navigation_popup.h
blob094143ceccf96ad6c1d8e848d8a6dee17b354d49
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_
6 #define CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_
8 #include <jni.h>
10 #include "base/android/jni_weak_ref.h"
11 #include "base/basictypes.h"
12 #include "base/task/cancelable_task_tracker.h"
14 class GURL;
16 namespace favicon_base {
17 struct FaviconImageResult;
20 // The native bridge for the history navigation popup that provides additional
21 // functionality to the UI widget.
22 class NavigationPopup {
23 public:
24 NavigationPopup(JNIEnv* env, jobject obj);
26 void Destroy(JNIEnv* env, jobject obj);
27 void FetchFaviconForUrl(JNIEnv* env, jobject obj, jstring jurl);
29 void OnFaviconDataAvailable(
30 GURL navigation_entry_url,
31 const favicon_base::FaviconImageResult& image_result);
33 static bool RegisterNavigationPopup(JNIEnv* env);
35 protected:
36 virtual ~NavigationPopup();
38 private:
39 JavaObjectWeakGlobalRef weak_jobject_;
41 base::CancelableTaskTracker cancelable_task_tracker_;
43 DISALLOW_COPY_AND_ASSIGN(NavigationPopup);
46 #endif // CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_