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

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

Issue 562423002: 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: Address comments Created 6 years, 3 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;
48 virtual void Purge() OVERRIDE; 49 virtual void Purge() OVERRIDE;
49 virtual void Enable() OVERRIDE; 50 virtual void Enable() OVERRIDE;
50 virtual void AddConnectionObserver(GCMConnectionObserver* observer) OVERRIDE; 51 virtual void AddConnectionObserver(GCMConnectionObserver* observer) OVERRIDE;
51 virtual void RemoveConnectionObserver( 52 virtual void RemoveConnectionObserver(
52 GCMConnectionObserver* observer) OVERRIDE; 53 GCMConnectionObserver* observer) OVERRIDE;
53 virtual void Disable() OVERRIDE; 54 virtual void Disable() OVERRIDE;
54 virtual GCMClient* GetGCMClientForTesting() const OVERRIDE; 55 virtual GCMClient* GetGCMClientForTesting() const OVERRIDE;
55 virtual bool IsStarted() const OVERRIDE; 56 virtual bool IsStarted() const OVERRIDE;
56 virtual bool IsConnected() const OVERRIDE; 57 virtual bool IsConnected() const OVERRIDE;
57 virtual void GetGCMStatistics(const GetGCMStatisticsCallback& callback, 58 virtual void GetGCMStatistics(const GetGCMStatisticsCallback& callback,
(...skipping 17 matching lines...) Expand all
75 76
76 private: 77 private:
77 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 78 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(GCMDriverAndroid); 80 DISALLOW_COPY_AND_ASSIGN(GCMDriverAndroid);
80 }; 81 };
81 82
82 } // namespace gcm 83 } // namespace gcm
83 84
84 #endif // COMPONENTS_GCM_DRIVER_GCM_DRIVER_ANDROID_H 85 #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