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

Side by Side Diff: chrome/browser/ui/android/tab_model/tab_model_base.h

Issue 286353002: Move ClearBrowsingData from the ToolbarModel to the application (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove OpenClearBrowsingData declaration from tab model test. Created 6 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_UI_ANDROID_TAB_MODEL_TAB_MODEL_BASE_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_BASE_H_
6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_BASE_H_ 6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_BASE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void SetActiveIndex(int index) OVERRIDE; 43 virtual void SetActiveIndex(int index) OVERRIDE;
44 virtual void CloseTabAt(int index) OVERRIDE; 44 virtual void CloseTabAt(int index) OVERRIDE;
45 45
46 virtual void CreateTab(content::WebContents* web_contents, 46 virtual void CreateTab(content::WebContents* web_contents,
47 int parent_tab_id) OVERRIDE; 47 int parent_tab_id) OVERRIDE;
48 virtual content::WebContents* CreateNewTabForDevTools( 48 virtual content::WebContents* CreateNewTabForDevTools(
49 const GURL& url) OVERRIDE; 49 const GURL& url) OVERRIDE;
50 50
51 // Return true if we are currently restoring sessions asynchronously. 51 // Return true if we are currently restoring sessions asynchronously.
52 virtual bool IsSessionRestoreInProgress() const OVERRIDE; 52 virtual bool IsSessionRestoreInProgress() const OVERRIDE;
53 virtual void OpenClearBrowsingData() const OVERRIDE;
54 53
55 // Instructs the TabModel to broadcast a notification that all tabs are now 54 // Instructs the TabModel to broadcast a notification that all tabs are now
56 // loaded from storage. 55 // loaded from storage.
57 void BroadcastSessionRestoreComplete(JNIEnv* env, jobject obj); 56 void BroadcastSessionRestoreComplete(JNIEnv* env, jobject obj);
58 57
59 private: 58 private:
60 virtual ~TabModelBase(); 59 virtual ~TabModelBase();
61 60
62 JavaObjectWeakGlobalRef java_object_; 61 JavaObjectWeakGlobalRef java_object_;
63 }; 62 };
64 63
65 // Register the Tab's native methods through jni. 64 // Register the Tab's native methods through jni.
66 bool RegisterTabModelBase(JNIEnv* env); 65 bool RegisterTabModelBase(JNIEnv* env);
67 66
68 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_BASE_H_ 67 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/tab_model/tab_model.h ('k') | chrome/browser/ui/android/tab_model/tab_model_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698