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

Side by Side Diff: chrome/browser/android/tab_android.h

Issue 16421003: [Sync] Add logic to reassociate tab nodes after restart. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit. Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Called to determine if chrome://welcome should contain links to the terms 74 // Called to determine if chrome://welcome should contain links to the terms
75 // of service and the privacy notice. 75 // of service and the privacy notice.
76 virtual bool ShouldWelcomePageLinkToTermsOfService() = 0; 76 virtual bool ShouldWelcomePageLinkToTermsOfService() = 0;
77 77
78 // Called when the common ExternalProtocolHandler wants to 78 // Called when the common ExternalProtocolHandler wants to
79 // run the external protocol dialog. 79 // run the external protocol dialog.
80 // TODO(jknotten): Remove this method. Making it non-abstract, so that 80 // TODO(jknotten): Remove this method. Making it non-abstract, so that
81 // derived classes may remove their implementation first. 81 // derived classes may remove their implementation first.
82 virtual void RunExternalProtocolDialog(const GURL& url); 82 virtual void RunExternalProtocolDialog(const GURL& url);
83 83
84 // Used by sync to get/set the sync id of tab.
85 virtual int64 GetSyncId() const = 0;
86 virtual void SetSyncId(int64 sync_id) = 0;
87
84 static bool RegisterTabAndroid(JNIEnv* env); 88 static bool RegisterTabAndroid(JNIEnv* env);
89
85 protected: 90 protected:
86 virtual ~TabAndroid(); 91 virtual ~TabAndroid();
87 92
88 static void InitTabHelpers(content::WebContents* web_contents); 93 static void InitTabHelpers(content::WebContents* web_contents);
89 94
90 content::WebContents* InitWebContentsFromView(JNIEnv* env, 95 content::WebContents* InitWebContentsFromView(JNIEnv* env,
91 jobject content_view); 96 jobject content_view);
92 97
93 SessionID tab_id_; 98 SessionID tab_id_;
94 99
95 private: 100 private:
96 JavaObjectWeakGlobalRef weak_java_tab_; 101 JavaObjectWeakGlobalRef weak_java_tab_;
97 }; 102 };
98 103
99 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ 104 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/android/testshell/testshell_tab.cc ('k') | chrome/browser/sync/glue/session_model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698