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

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

Issue 885283009: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 base::android::ScopedJavaLocalRef<jstring> GetUrlForContextualSearchQuery( 49 base::android::ScopedJavaLocalRef<jstring> GetUrlForContextualSearchQuery(
50 JNIEnv* env, 50 JNIEnv* env,
51 jobject obj, 51 jobject obj,
52 jstring jquery, 52 jstring jquery,
53 jstring jalternate_term, 53 jstring jalternate_term,
54 jboolean jshould_prefetch); 54 jboolean jshould_prefetch);
55 55
56 static bool Register(JNIEnv* env); 56 static bool Register(JNIEnv* env);
57 57
58 private: 58 private:
59 ~TemplateUrlServiceAndroid(); 59 ~TemplateUrlServiceAndroid() override;
60 60
61 bool IsPrepopulatedTemplate(TemplateURL* url); 61 bool IsPrepopulatedTemplate(TemplateURL* url);
62 62
63 void OnTemplateURLServiceLoaded(); 63 void OnTemplateURLServiceLoaded();
64 64
65 // TemplateUrlServiceObserver: 65 // TemplateUrlServiceObserver:
66 void OnTemplateURLServiceChanged() override; 66 void OnTemplateURLServiceChanged() override;
67 67
68 JavaObjectWeakGlobalRef weak_java_obj_; 68 JavaObjectWeakGlobalRef weak_java_obj_;
69 69
70 // Pointer to the TemplateUrlService for the main profile. 70 // Pointer to the TemplateUrlService for the main profile.
71 TemplateURLService* template_url_service_; 71 TemplateURLService* template_url_service_;
72 72
73 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_; 73 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); 75 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid);
76 }; 76 };
77 77
78 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ 78 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/search_android_unittest.cc ('k') | chrome/browser/sessions/in_memory_tab_restore_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698