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

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

Issue 515763002: [GCM] Extracting GCMConnectionObserver from GCMAppHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR feedback 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 29 matching lines...) Expand all
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 Purge() OVERRIDE; 48 virtual void Purge() OVERRIDE;
49 virtual void Enable() OVERRIDE; 49 virtual void Enable() OVERRIDE;
50 virtual void AddConnectionObserver(GCMConnectionObserver* observer) OVERRIDE;
51 virtual void RemoveConnectionObserver(
52 GCMConnectionObserver* observer) OVERRIDE;
50 virtual void Disable() OVERRIDE; 53 virtual void Disable() OVERRIDE;
51 virtual GCMClient* GetGCMClientForTesting() const OVERRIDE; 54 virtual GCMClient* GetGCMClientForTesting() const OVERRIDE;
52 virtual bool IsStarted() const OVERRIDE; 55 virtual bool IsStarted() const OVERRIDE;
53 virtual bool IsConnected() const OVERRIDE; 56 virtual bool IsConnected() const OVERRIDE;
54 virtual void GetGCMStatistics(const GetGCMStatisticsCallback& callback, 57 virtual void GetGCMStatistics(const GetGCMStatisticsCallback& callback,
55 bool clear_logs) OVERRIDE; 58 bool clear_logs) OVERRIDE;
56 virtual void SetGCMRecording(const GetGCMStatisticsCallback& callback, 59 virtual void SetGCMRecording(const GetGCMStatisticsCallback& callback,
57 bool recording) OVERRIDE; 60 bool recording) OVERRIDE;
58 virtual void UpdateAccountMapping( 61 virtual void UpdateAccountMapping(
59 const AccountMapping& account_mapping) OVERRIDE; 62 const AccountMapping& account_mapping) OVERRIDE;
(...skipping 12 matching lines...) Expand all
72 75
73 private: 76 private:
74 base::android::ScopedJavaGlobalRef<jobject> java_ref_; 77 base::android::ScopedJavaGlobalRef<jobject> java_ref_;
75 78
76 DISALLOW_COPY_AND_ASSIGN(GCMDriverAndroid); 79 DISALLOW_COPY_AND_ASSIGN(GCMDriverAndroid);
77 }; 80 };
78 81
79 } // namespace gcm 82 } // namespace gcm
80 83
81 #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