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

Side by Side Diff: components/gcm_driver/gcm_driver_android.h

Issue 608813003: Revert of Clear GCM data when the user clears cookies and other site data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « components/gcm_driver/gcm_driver.h ('k') | components/gcm_driver/gcm_driver_android.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 COMPONENTS_GCM_DRIVER_GCM_DRIVER_ANDROID_H 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_DRIVER_ANDROID_H
6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_ANDROID_H 6 #define COMPONENTS_GCM_DRIVER_GCM_DRIVER_ANDROID_H
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 27 matching lines...) Expand all
38 jobjectArray data_keys_and_values); 38 jobjectArray data_keys_and_values);
39 void OnMessagesDeleted(JNIEnv* env, 39 void OnMessagesDeleted(JNIEnv* env,
40 jobject obj, 40 jobject obj,
41 jstring app_id); 41 jstring app_id);
42 42
43 // Register JNI methods. 43 // Register JNI methods.
44 static bool RegisterBindings(JNIEnv* env); 44 static bool RegisterBindings(JNIEnv* env);
45 45
46 // GCMDriver implementation: 46 // GCMDriver implementation:
47 virtual void OnSignedIn() OVERRIDE; 47 virtual void OnSignedIn() OVERRIDE;
48 virtual void OnSignedOut() OVERRIDE;
49 virtual void Purge() OVERRIDE; 48 virtual void Purge() OVERRIDE;
50 virtual void Enable() OVERRIDE; 49 virtual void Enable() OVERRIDE;
51 virtual void AddConnectionObserver(GCMConnectionObserver* observer) OVERRIDE; 50 virtual void AddConnectionObserver(GCMConnectionObserver* observer) OVERRIDE;
52 virtual void RemoveConnectionObserver( 51 virtual void RemoveConnectionObserver(
53 GCMConnectionObserver* observer) OVERRIDE; 52 GCMConnectionObserver* observer) OVERRIDE;
54 virtual void Disable() OVERRIDE; 53 virtual void Disable() OVERRIDE;
55 virtual GCMClient* GetGCMClientForTesting() const OVERRIDE; 54 virtual GCMClient* GetGCMClientForTesting() const OVERRIDE;
56 virtual bool IsStarted() const OVERRIDE; 55 virtual bool IsStarted() const OVERRIDE;
57 virtual bool IsConnected() const OVERRIDE; 56 virtual bool IsConnected() const OVERRIDE;
58 virtual void GetGCMStatistics(const GetGCMStatisticsCallback& callback, 57 virtual void GetGCMStatistics(const GetGCMStatisticsCallback& callback,
(...skipping 17 matching lines...) Expand all
76 75
77 private: 76 private:
78 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 77 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(GCMDriverAndroid); 79 DISALLOW_COPY_AND_ASSIGN(GCMDriverAndroid);
81 }; 80 };
82 81
83 } // namespace gcm 82 } // namespace gcm
84 83
85 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_ANDROID_H 84 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_ANDROID_H
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_driver.h ('k') | components/gcm_driver/gcm_driver_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698