OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_OMNIBOX_PRERENDER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_OMNIBOX_OMNIBOX_PRERENDER_H_ |
6 #define CHROME_BROWSER_ANDROID_OMNIBOX_OMNIBOX_PRERENDER_H_ | 6 #define CHROME_BROWSER_ANDROID_OMNIBOX_OMNIBOX_PRERENDER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 | 13 |
14 class AutocompleteResult; | |
15 class ProfielAndroid; | |
16 class Profile; | 14 class Profile; |
17 class TabAndroid; | |
18 struct AutocompleteMatch; | 15 struct AutocompleteMatch; |
19 | 16 |
20 namespace content { | 17 namespace content { |
21 class WebContents; | 18 class WebContents; |
22 } | 19 } |
23 | 20 |
24 // This class is responsible for taking the user's omnibox input text, | 21 // This class is responsible for taking the user's omnibox input text, |
25 // AutocompleteResults and navigation actions and then feeding them to the | 22 // AutocompleteResults and navigation actions and then feeding them to the |
26 // AutocompleteActionPredictor. The predictor uses it to update its | 23 // AutocompleteActionPredictor. The predictor uses it to update its |
27 // database and returns predictions on what page, if any, to pre-render | 24 // database and returns predictions on what page, if any, to pre-render |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 Profile* profile, | 64 Profile* profile, |
68 content::WebContents* web_contents); | 65 content::WebContents* web_contents); |
69 JavaObjectWeakGlobalRef weak_java_omnibox_; | 66 JavaObjectWeakGlobalRef weak_java_omnibox_; |
70 | 67 |
71 DISALLOW_COPY_AND_ASSIGN(OmniboxPrerender); | 68 DISALLOW_COPY_AND_ASSIGN(OmniboxPrerender); |
72 }; | 69 }; |
73 | 70 |
74 bool RegisterOmniboxPrerender(JNIEnv* env); | 71 bool RegisterOmniboxPrerender(JNIEnv* env); |
75 | 72 |
76 #endif // CHROME_BROWSER_ANDROID_OMNIBOX_OMNIBOX_PRERENDER_H_ | 73 #endif // CHROME_BROWSER_ANDROID_OMNIBOX_OMNIBOX_PRERENDER_H_ |
OLD | NEW |