OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_LOGO_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_LOGO_BRIDGE_H_ |
6 #define CHROME_BROWSER_ANDROID_LOGO_BRIDGE_H_ | 6 #define CHROME_BROWSER_ANDROID_LOGO_BRIDGE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 const base::android::JavaParamRef<jstring>& j_url); | 55 const base::android::JavaParamRef<jstring>& j_url); |
56 | 56 |
57 private: | 57 private: |
58 class AnimatedLogoFetcher; | 58 class AnimatedLogoFetcher; |
59 | 59 |
60 virtual ~LogoBridge(); | 60 virtual ~LogoBridge(); |
61 | 61 |
62 // doodle::DoodleService::Observer implementation. | 62 // doodle::DoodleService::Observer implementation. |
63 void OnDoodleConfigUpdated( | 63 void OnDoodleConfigUpdated( |
64 const base::Optional<doodle::DoodleConfig>& maybe_doodle_config) override; | 64 const base::Optional<doodle::DoodleConfig>& maybe_doodle_config) override; |
| 65 void OnDoodleConfigUnchanged() override; |
65 | 66 |
66 void DoodleConfigReceived( | 67 void DoodleConfigReceived( |
67 const base::Optional<doodle::DoodleConfig>& maybe_doodle_config, | 68 const base::Optional<doodle::DoodleConfig>& maybe_doodle_config, |
68 bool from_cache); | 69 bool from_cache); |
69 | 70 |
70 void DoodleImageFetched(bool config_from_cache, | 71 void DoodleImageFetched(bool config_from_cache, |
71 const GURL& on_click_url, | 72 const GURL& on_click_url, |
72 const std::string& alt_text, | 73 const std::string& alt_text, |
73 const GURL& animated_image_url, | 74 const GURL& animated_image_url, |
74 const std::string& image_fetch_id, | 75 const std::string& image_fetch_id, |
(...skipping 13 matching lines...) Expand all Loading... |
88 std::unique_ptr<AnimatedLogoFetcher> animated_logo_fetcher_; | 89 std::unique_ptr<AnimatedLogoFetcher> animated_logo_fetcher_; |
89 | 90 |
90 base::WeakPtrFactory<LogoBridge> weak_ptr_factory_; | 91 base::WeakPtrFactory<LogoBridge> weak_ptr_factory_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(LogoBridge); | 93 DISALLOW_COPY_AND_ASSIGN(LogoBridge); |
93 }; | 94 }; |
94 | 95 |
95 bool RegisterLogoBridge(JNIEnv* env); | 96 bool RegisterLogoBridge(JNIEnv* env); |
96 | 97 |
97 #endif // CHROME_BROWSER_ANDROID_LOGO_BRIDGE_H_ | 98 #endif // CHROME_BROWSER_ANDROID_LOGO_BRIDGE_H_ |
OLD | NEW |