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

Side by Side Diff: chrome/browser/android/contextualsearch/contextual_search_tab_helper.h

Issue 1847373005: Fix IWYU violators that don't include scoped_ptr.h in Android build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_TAB_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_TAB_HELPER_H_ 6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_TAB_HELPER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
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/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
14 #include "components/prefs/pref_change_registrar.h" 15 #include "components/prefs/pref_change_registrar.h"
15 16
16 class Profile; 17 class Profile;
17 18
18 class ContextualSearchTabHelper { 19 class ContextualSearchTabHelper {
19 public: 20 public:
20 ContextualSearchTabHelper(JNIEnv* env, jobject obj, Profile* profile); 21 ContextualSearchTabHelper(JNIEnv* env, jobject obj, Profile* profile);
21 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); 22 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
22 23
23 private: 24 private:
24 ~ContextualSearchTabHelper(); 25 ~ContextualSearchTabHelper();
25 void OnContextualSearchPrefChanged(); 26 void OnContextualSearchPrefChanged();
26 27
27 JavaObjectWeakGlobalRef weak_java_ref_; 28 JavaObjectWeakGlobalRef weak_java_ref_;
28 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; 29 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_;
29 base::WeakPtrFactory<ContextualSearchTabHelper> weak_factory_; 30 base::WeakPtrFactory<ContextualSearchTabHelper> weak_factory_;
30 DISALLOW_COPY_AND_ASSIGN(ContextualSearchTabHelper); 31 DISALLOW_COPY_AND_ASSIGN(ContextualSearchTabHelper);
31 }; 32 };
32 33
33 bool RegisterContextualSearchTabHelper(JNIEnv* env); 34 bool RegisterContextualSearchTabHelper(JNIEnv* env);
34 35
35 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_TAB_HELPER_ H_ 36 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_TAB_HELPER_ H_
OLDNEW
« no previous file with comments | « chrome/browser/android/compositor/decoration_title.h ('k') | content/app/android/content_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698