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

Side by Side Diff: chrome/browser/android/omnibox/autocomplete_controller_android.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment 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 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_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/android/jni_weak_ref.h" 11 #include "base/android/jni_weak_ref.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 14 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
15 #include "components/keyed_service/core/keyed_service.h" 15 #include "components/keyed_service/core/keyed_service.h"
16 #include "components/metrics/proto/omnibox_event.pb.h" 16 #include "components/metrics/proto/omnibox_event.pb.h"
17 #include "components/omnibox/browser/autocomplete_controller_delegate.h" 17 #include "components/omnibox/browser/autocomplete_controller_delegate.h"
18 #include "components/omnibox/browser/autocomplete_input.h" 18 #include "components/omnibox/browser/autocomplete_input.h"
19 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
21 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
22 22
23 class AutocompleteController; 23 class AutocompleteController;
24 struct AutocompleteMatch; 24 struct AutocompleteMatch;
25 class AutocompleteResult; 25 class AutocompleteResult;
26 class Profile; 26 class Profile;
27 class Tab;
28 27
29 // The native part of the Java AutocompleteController class. 28 // The native part of the Java AutocompleteController class.
30 class AutocompleteControllerAndroid : public AutocompleteControllerDelegate, 29 class AutocompleteControllerAndroid : public AutocompleteControllerDelegate,
31 public KeyedService { 30 public KeyedService {
32 public: 31 public:
33 explicit AutocompleteControllerAndroid(Profile* profile); 32 explicit AutocompleteControllerAndroid(Profile* profile);
34 33
35 // Methods that forward to AutocompleteController: 34 // Methods that forward to AutocompleteController:
36 void Start(JNIEnv* env, 35 void Start(JNIEnv* env,
37 const base::android::JavaRef<jobject>& obj, 36 const base::android::JavaRef<jobject>& obj,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 JavaObjectWeakGlobalRef weak_java_autocomplete_controller_android_; 143 JavaObjectWeakGlobalRef weak_java_autocomplete_controller_android_;
145 Profile* profile_; 144 Profile* profile_;
146 145
147 DISALLOW_COPY_AND_ASSIGN(AutocompleteControllerAndroid); 146 DISALLOW_COPY_AND_ASSIGN(AutocompleteControllerAndroid);
148 }; 147 };
149 148
150 // Registers the LocationBar native method. 149 // Registers the LocationBar native method.
151 bool RegisterAutocompleteControllerAndroid(JNIEnv* env); 150 bool RegisterAutocompleteControllerAndroid(JNIEnv* env);
152 151
153 #endif // CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_ 152 #endif // CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/offline_pages/recent_tab_helper.h ('k') | chrome/browser/android/omnibox/omnibox_prerender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698