Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| 6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 64 | 64 |
| 65 // Called when a bookmark node should be edited. | 65 // Called when a bookmark node should be edited. |
| 66 virtual void EditBookmark(int64 node_id, bool is_folder) = 0; | 66 virtual void EditBookmark(int64 node_id, bool is_folder) = 0; |
| 67 | 67 |
| 68 // Called when the common ExternalProtocolHandler wants to | 68 // Called when the common ExternalProtocolHandler wants to |
| 69 // run the external protocol dialog. | 69 // run the external protocol dialog. |
| 70 // TODO(jknotten): Remove this method. Making it non-abstract, so that | 70 // TODO(jknotten): Remove this method. Making it non-abstract, so that |
| 71 // derived classes may remove their implementation first. | 71 // derived classes may remove their implementation first. |
| 72 virtual void RunExternalProtocolDialog(const GURL& url); | 72 virtual void RunExternalProtocolDialog(const GURL& url); |
| 73 | 73 |
| 74 virtual int64 GetSyncId() const; | |
|
Yaron
2013/06/07 17:08:35
Add brief comment for the pair.
shashi
2013/06/11 19:15:06
Done.
| |
| 75 virtual void SetSyncId(int64 sync_id); | |
| 76 | |
| 74 static bool RegisterTabAndroid(JNIEnv* env); | 77 static bool RegisterTabAndroid(JNIEnv* env); |
| 78 | |
| 75 protected: | 79 protected: |
| 76 virtual ~TabAndroid(); | 80 virtual ~TabAndroid(); |
| 77 | 81 |
| 78 static void InitTabHelpers(content::WebContents* web_contents); | 82 static void InitTabHelpers(content::WebContents* web_contents); |
| 79 | 83 |
| 80 content::WebContents* InitWebContentsFromView(JNIEnv* env, | 84 content::WebContents* InitWebContentsFromView(JNIEnv* env, |
| 81 jobject content_view); | 85 jobject content_view); |
| 82 | 86 |
| 83 SessionID tab_id_; | 87 SessionID tab_id_; |
| 84 | 88 |
| 85 private: | 89 private: |
| 86 JavaObjectWeakGlobalRef weak_java_tab_; | 90 JavaObjectWeakGlobalRef weak_java_tab_; |
| 87 }; | 91 }; |
| 88 | 92 |
| 89 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ | 93 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ |
| OLD | NEW |