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

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

Issue 2532173002: Cleanup: Remove partial InstantSearch implementation on Android (Closed)
Patch Set: Created 4 years 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
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 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/android/jni_weak_ref.h" 13 #include "base/android/jni_weak_ref.h"
14 #include "base/android/scoped_java_ref.h" 14 #include "base/android/scoped_java_ref.h"
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
18 #include "chrome/browser/search/instant_service_observer.h"
19 #include "chrome/browser/sync/glue/synced_tab_delegate_android.h" 18 #include "chrome/browser/sync/glue/synced_tab_delegate_android.h"
20 #include "chrome/browser/ui/search/search_tab_helper_delegate.h"
21 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" 19 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h"
22 #include "components/favicon/core/favicon_driver_observer.h" 20 #include "components/favicon/core/favicon_driver_observer.h"
23 #include "components/infobars/core/infobar_manager.h" 21 #include "components/infobars/core/infobar_manager.h"
24 #include "components/sessions/core/session_id.h" 22 #include "components/sessions/core/session_id.h"
25 #include "components/toolbar/toolbar_model.h" 23 #include "components/toolbar/toolbar_model.h"
26 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
27 #include "content/public/browser/notification_registrar.h" 25 #include "content/public/browser/notification_registrar.h"
28 26
29 class GURL; 27 class GURL;
30 class Profile; 28 class Profile;
(...skipping 19 matching lines...) Expand all
50 48
51 namespace content { 49 namespace content {
52 class WebContents; 50 class WebContents;
53 } 51 }
54 52
55 namespace prerender { 53 namespace prerender {
56 class PrerenderManager; 54 class PrerenderManager;
57 } 55 }
58 56
59 class TabAndroid : public CoreTabHelperDelegate, 57 class TabAndroid : public CoreTabHelperDelegate,
60 public InstantServiceObserver,
61 public SearchTabHelperDelegate,
62 public content::NotificationObserver, 58 public content::NotificationObserver,
63 public favicon::FaviconDriverObserver { 59 public favicon::FaviconDriverObserver {
64 public: 60 public:
65 // A Java counterpart will be generated for this enum. 61 // A Java counterpart will be generated for this enum.
66 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser 62 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser
67 enum TabLoadStatus { 63 enum TabLoadStatus {
68 PAGE_LOAD_FAILED = 0, 64 PAGE_LOAD_FAILED = 0,
69 DEFAULT_PAGE_LOAD = 1, 65 DEFAULT_PAGE_LOAD = 1,
70 PARTIAL_PRERENDERED_PAGE_LOAD = 2, 66 PARTIAL_PRERENDERED_PAGE_LOAD = 2,
71 FULL_PRERENDERED_PAGE_LOAD = 3, 67 FULL_PRERENDERED_PAGE_LOAD = 3,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool HasPrerenderedUrl(GURL gurl); 124 bool HasPrerenderedUrl(GURL gurl);
129 125
130 void ShowOfflinePages(); 126 void ShowOfflinePages();
131 127
132 // Overridden from CoreTabHelperDelegate: 128 // Overridden from CoreTabHelperDelegate:
133 void SwapTabContents(content::WebContents* old_contents, 129 void SwapTabContents(content::WebContents* old_contents,
134 content::WebContents* new_contents, 130 content::WebContents* new_contents,
135 bool did_start_load, 131 bool did_start_load,
136 bool did_finish_load) override; 132 bool did_finish_load) override;
137 133
138 // Overridden from InstantServiceObserver:
139 void DefaultSearchProviderChanged(
140 bool google_base_url_domain_changed) override;
141
142 // Overridden from SearchTabHelperDelegate:
143 void OnWebContentsInstantSupportDisabled(
144 const content::WebContents* web_contents) override;
145
146 // Overridden from NotificationObserver: 134 // Overridden from NotificationObserver:
147 void Observe(int type, 135 void Observe(int type,
148 const content::NotificationSource& source, 136 const content::NotificationSource& source,
149 const content::NotificationDetails& details) override; 137 const content::NotificationDetails& details) override;
150 138
151 // Overridden from favicon::FaviconDriverObserver: 139 // Overridden from favicon::FaviconDriverObserver:
152 void OnFaviconUpdated(favicon::FaviconDriver* favicon_driver, 140 void OnFaviconUpdated(favicon::FaviconDriver* favicon_driver,
153 NotificationIconType notification_icon_type, 141 NotificationIconType notification_icon_type,
154 const GURL& icon_url, 142 const GURL& icon_url,
155 bool icon_url_changed, 143 bool icon_url_changed,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 web_contents_delegate_; 267 web_contents_delegate_;
280 268
281 std::unique_ptr<blimp::client::BlimpContents> blimp_contents_; 269 std::unique_ptr<blimp::client::BlimpContents> blimp_contents_;
282 270
283 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_; 271 std::unique_ptr<browser_sync::SyncedTabDelegateAndroid> synced_tab_delegate_;
284 272
285 DISALLOW_COPY_AND_ASSIGN(TabAndroid); 273 DISALLOW_COPY_AND_ASSIGN(TabAndroid);
286 }; 274 };
287 275
288 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_ 276 #endif // CHROME_BROWSER_ANDROID_TAB_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/omnibox/autocomplete_controller_android.cc ('k') | chrome/browser/android/tab_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698