OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ |
7 | 7 |
8 #include "base/android/jni_weak_ref.h" | 8 #include "base/android/jni_weak_ref.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "components/search_engines/template_url_service.h" | 12 #include "components/search_engines/template_url_service.h" |
12 #include "components/search_engines/template_url_service_observer.h" | 13 #include "components/search_engines/template_url_service_observer.h" |
13 | 14 |
14 class TemplateURL; | 15 class TemplateURL; |
15 | 16 |
16 | 17 |
17 // Android wrapper of the TemplateUrlService which provides access from the Java | 18 // Android wrapper of the TemplateUrlService which provides access from the Java |
18 // layer. Note that on Android, there's only a single profile, and therefore | 19 // layer. Note that on Android, there's only a single profile, and therefore |
19 // a single instance of this wrapper. | 20 // a single instance of this wrapper. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 87 |
87 // Pointer to the TemplateUrlService for the main profile. | 88 // Pointer to the TemplateUrlService for the main profile. |
88 TemplateURLService* template_url_service_; | 89 TemplateURLService* template_url_service_; |
89 | 90 |
90 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_; | 91 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); | 93 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); |
93 }; | 94 }; |
94 | 95 |
95 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ | 96 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ |
OLD | NEW |