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

Side by Side Diff: chrome/browser/search_engines/template_url_service_android.h

Issue 368273011: Revert of Componentize TemplateURLService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months 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 | Annotate | Revision Log
OLDNEW
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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "components/search_engines/template_url_service.h" 11 #include "chrome/browser/search_engines/template_url_service.h"
12 12
13 class TemplateURL; 13 class TemplateURL;
14 14
15 15
16 // Android wrapper of the TemplateUrlService which provides access from the Java 16 // Android wrapper of the TemplateUrlService which provides access from the Java
17 // layer. Note that on Android, there's only a single profile, and therefore 17 // layer. Note that on Android, there's only a single profile, and therefore
18 // a single instance of this wrapper. 18 // a single instance of this wrapper.
19 class TemplateUrlServiceAndroid { 19 class TemplateUrlServiceAndroid {
20 public: 20 public:
21 TemplateUrlServiceAndroid(JNIEnv* env, jobject obj); 21 TemplateUrlServiceAndroid(JNIEnv* env, jobject obj);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // Pointer to the TemplateUrlService for the main profile. 64 // Pointer to the TemplateUrlService for the main profile.
65 TemplateURLService* template_url_service_; 65 TemplateURLService* template_url_service_;
66 66
67 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_; 67 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); 69 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid);
70 }; 70 };
71 71
72 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ 72 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_service.cc ('k') | chrome/browser/search_engines/template_url_service_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698