OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_ | |
6 #define CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_ | |
7 | |
8 #include <jni.h> | |
9 | |
10 #include "base/android/jni_helper.h" | |
11 #include "base/basictypes.h" | |
12 #include "chrome/common/cancelable_task_tracker.h" | |
13 | |
14 class GURL; | |
15 | |
16 namespace history { | |
17 class FaviconImageResult; | |
18 } | |
19 | |
20 class NavigationPopup { | |
21 public: | |
22 NavigationPopup(JNIEnv* env, jobject obj); | |
23 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.
| |
24 | |
25 void Destroy(JNIEnv* env, jobject obj); | |
26 void FetchFaviconForUrl(JNIEnv* env, jobject obj, jstring jurl); | |
27 | |
28 void OnFaviconDataAvailable(GURL navigation_entry_url, | |
29 const history::FaviconImageResult& image_result); | |
30 | |
31 static bool RegisterNavigationPopup(JNIEnv* env); | |
32 | |
33 private: | |
34 JavaObjectWeakGlobalRef weak_jobject_; | |
35 | |
36 CancelableTaskTracker cancelable_task_tracker_; | |
37 | |
38 DISALLOW_COPY_AND_ASSIGN(NavigationPopup); | |
39 }; | |
40 | |
41 #endif // CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_ | |
OLD | NEW |