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

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

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_TAB_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_TAB_HELPER_H_
7
8 #include <jni.h>
9
10 #include "base/android/jni_weak_ref.h"
11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h"
13 #include "base/prefs/pref_change_registrar.h"
14
15 class Profile;
16
17 class ContextualSearchTabHelper {
18 public:
19 ContextualSearchTabHelper(JNIEnv* env, jobject obj, Profile* profile);
20 void Destroy(JNIEnv* env, jobject obj);
21
22 private:
23 ~ContextualSearchTabHelper();
24 void OnContextualSearchPrefChanged();
25
26 JavaObjectWeakGlobalRef weak_java_ref_;
27 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_;
28 base::WeakPtrFactory<ContextualSearchTabHelper> weak_factory_;
29 DISALLOW_COPY_AND_ASSIGN(ContextualSearchTabHelper);
30 };
31
32 bool RegisterContextualSearchTabHelper(JNIEnv* env);
33
34 #endif // CHROME_BROWSER_ANDROID_CONTEXTUALSEARCH_CONTEXTUAL_SEARCH_TAB_HELPER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698