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

Side by Side Diff: components/variations/android/variations_seed_bridge.h

Issue 1438123002: Removed callbacks to JNI functions + added gzip compressed seed support & pulling response time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implemented the rest TODOs: pulling time from response and GZIP compressed seed support Created 5 years, 1 month 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 COMPONENTS_VARIATIONS_ANDROID_VARIATIONS_SEED_BRIDGE_H_ 5 #ifndef COMPONENTS_VARIATIONS_ANDROID_VARIATIONS_SEED_BRIDGE_H_
6 #define COMPONENTS_VARIATIONS_ANDROID_VARIATIONS_SEED_BRIDGE_H_ 6 #define COMPONENTS_VARIATIONS_ANDROID_VARIATIONS_SEED_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/time/time.h"
12
11 namespace variations { 13 namespace variations {
12 namespace android { 14 namespace android {
13 15
14 bool RegisterVariationsSeedBridge(JNIEnv* env); 16 bool RegisterVariationsSeedBridge(JNIEnv* env);
15 17
16 // Return the first run seed data pulled from the Java side of application. 18 // Return the first run seed data pulled from the Java side of application.
17 void GetVariationsFirstRunSeed(std::string* seed_data, 19 void GetVariationsFirstRunSeed(std::string* seed_data,
18 std::string* seed_signature, 20 std::string* seed_signature,
19 std::string* seed_country); 21 std::string* seed_country,
22 base::Time* response_time,
23 bool* is_gzip_compressed);
20 24
21 } // namespace android 25 } // namespace android
22 } // namespace variations 26 } // namespace variations
23 27
24 #endif // COMPONENTS_VARIATIONS_ANDROID_FIRSTRUN_VARIATIONS_SEED_BRIDGE_H_ 28 #endif // COMPONENTS_VARIATIONS_ANDROID_FIRSTRUN_VARIATIONS_SEED_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698