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

Side by Side Diff: chrome/browser/android/logo_bridge.h

Issue 2843403003: OnDoodleConfigRevalidated (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | chrome/browser/android/logo_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const base::android::JavaParamRef<jobject>& obj, 53 const base::android::JavaParamRef<jobject>& obj,
54 const base::android::JavaParamRef<jobject>& j_callback, 54 const base::android::JavaParamRef<jobject>& j_callback,
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 OnDoodleConfigRevalidated() override;
63 void OnDoodleConfigUpdated( 64 void OnDoodleConfigUpdated(
64 const base::Optional<doodle::DoodleConfig>& maybe_doodle_config) override; 65 const base::Optional<doodle::DoodleConfig>& maybe_doodle_config) 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,
(...skipping 15 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/logo_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698