ExtensionSyncService: listen for relevant changes instead of being explicitly called...
[chromium-blink-merge.git] / chrome / browser / android / logo_bridge.h
blob37d30ee225ca32e80a6ba8b8781500bd41644879
1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_ANDROID_LOGO_BRIDGE_H_
6 #define CHROME_BROWSER_ANDROID_LOGO_BRIDGE_H_
8 #include <jni.h>
10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h"
13 class LogoService;
15 // The C++ counterpart to LogoBridge.java. Enables Java code to access the
16 // default search provider's logo.
17 class LogoBridge {
18 public:
19 explicit LogoBridge(jobject j_profile);
20 void Destroy(JNIEnv* env, jobject obj);
21 void GetCurrentLogo(JNIEnv* env, jobject obj, jobject j_logo_observer);
23 private:
24 ~LogoBridge();
26 LogoService* logo_service_;
27 base::WeakPtrFactory<LogoBridge> weak_ptr_factory_;
29 DISALLOW_COPY_AND_ASSIGN(LogoBridge);
32 bool RegisterLogoBridge(JNIEnv* env);
34 #endif // CHROME_BROWSER_ANDROID_LOGO_BRIDGE_H_