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

Side by Side Diff: cloud_print/gcp20/prototype/cloud_print_xmpp_listener.h

Issue 22555003: GCP2.0 Device: Local settings workflow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_XMPP_LISTENER_H_ 5 #ifndef CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_XMPP_LISTENER_H_
6 #define CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_XMPP_LISTENER_H_ 6 #define CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_XMPP_LISTENER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 int standard_ping_interval, 64 int standard_ping_interval,
65 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 65 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
66 Delegate* delegate); 66 Delegate* delegate);
67 67
68 virtual ~CloudPrintXmppListener(); 68 virtual ~CloudPrintXmppListener();
69 69
70 // Connects to the server. 70 // Connects to the server.
71 void Connect(const std::string& access_token); 71 void Connect(const std::string& access_token);
72 72
73 // Update ping interval when new local_settings was received. 73 // Update ping interval when new local_settings was received.
74 void set_standard_ping_interval(int interval); 74 void set_ping_interval(int interval);
75 75
76 private: 76 private:
77 // notifier::PushClientObserver methods: 77 // notifier::PushClientObserver methods:
78 virtual void OnNotificationsEnabled() OVERRIDE; 78 virtual void OnNotificationsEnabled() OVERRIDE;
79 virtual void OnNotificationsDisabled( 79 virtual void OnNotificationsDisabled(
80 notifier::NotificationsDisabledReason reason) OVERRIDE; 80 notifier::NotificationsDisabledReason reason) OVERRIDE;
81 virtual void OnIncomingNotification( 81 virtual void OnIncomingNotification(
82 const notifier::Notification& notification) OVERRIDE; 82 const notifier::Notification& notification) OVERRIDE;
83 virtual void OnPingResponse() OVERRIDE; 83 virtual void OnPingResponse() OVERRIDE;
84 84
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 scoped_refptr<net::URLRequestContextGetter> context_getter_; 118 scoped_refptr<net::URLRequestContextGetter> context_getter_;
119 119
120 Delegate* delegate_; 120 Delegate* delegate_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(CloudPrintXmppListener); 122 DISALLOW_COPY_AND_ASSIGN(CloudPrintXmppListener);
123 }; 123 };
124 124
125 #endif // CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_XMPP_LISTENER_H_ 125 #endif // CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_XMPP_LISTENER_H_
126 126
OLDNEW
« no previous file with comments | « cloud_print/gcp20/prototype/cloud_print_response_parser.cc ('k') | cloud_print/gcp20/prototype/cloud_print_xmpp_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698