OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_MANAGER_H_ |
6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_MANAGER_H_ | 6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_MANAGER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| 11 #include "base/macros.h" |
9 #include "base/task/cancelable_task_tracker.h" | 12 #include "base/task/cancelable_task_tracker.h" |
10 #include "chrome/browser/android/contextualsearch/contextual_search_context.h" | 13 #include "chrome/browser/android/contextualsearch/contextual_search_context.h" |
11 #include "chrome/browser/android/contextualsearch/contextual_search_delegate.h" | 14 #include "chrome/browser/android/contextualsearch/contextual_search_delegate.h" |
12 | 15 |
13 // Manages the native extraction and request logic for Contextual Search, | 16 // Manages the native extraction and request logic for Contextual Search, |
14 // and interacts with the Java ContextualSearchManager for UX. | 17 // and interacts with the Java ContextualSearchManager for UX. |
15 // Most of the work is done by the associated ContextualSearchDelegate. | 18 // Most of the work is done by the associated ContextualSearchDelegate. |
16 class ContextualSearchManager { | 19 class ContextualSearchManager { |
17 public: | 20 public: |
18 // Constructs a native manager associated with the Java manager. | 21 // Constructs a native manager associated with the Java manager. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 78 |
76 // The delegate we're using the do the real work. | 79 // The delegate we're using the do the real work. |
77 scoped_ptr<ContextualSearchDelegate> delegate_; | 80 scoped_ptr<ContextualSearchDelegate> delegate_; |
78 | 81 |
79 DISALLOW_COPY_AND_ASSIGN(ContextualSearchManager); | 82 DISALLOW_COPY_AND_ASSIGN(ContextualSearchManager); |
80 }; | 83 }; |
81 | 84 |
82 bool RegisterContextualSearchManager(JNIEnv* env); | 85 bool RegisterContextualSearchManager(JNIEnv* env); |
83 | 86 |
84 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_MANAGER_H_ | 87 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_MANAGER_H_ |
OLD | NEW |