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

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

Issue 1124783002: [GCM] Wiring heartbeat interval calls to GCMDriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@store-heartbeat-gcm
Patch Set: Addressing final feedback and fixing formatting Created 5 years, 7 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/fake_gcm_driver.cc ('k') | components/gcm_driver/gcm_client_impl.h » ('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_CLIENT_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // Adds the Instance ID data for a specific app to the persistent store. 313 // Adds the Instance ID data for a specific app to the persistent store.
314 virtual void AddInstanceIDData(const std::string& app_id, 314 virtual void AddInstanceIDData(const std::string& app_id,
315 const std::string& instance_id_data) = 0; 315 const std::string& instance_id_data) = 0;
316 316
317 // Removes the Instance ID data for a specific app from the persistent store. 317 // Removes the Instance ID data for a specific app from the persistent store.
318 virtual void RemoveInstanceIDData(const std::string& app_id) = 0; 318 virtual void RemoveInstanceIDData(const std::string& app_id) = 0;
319 319
320 // Retrieves the Instance ID data for a specific app from the persistent 320 // Retrieves the Instance ID data for a specific app from the persistent
321 // store. 321 // store.
322 virtual std::string GetInstanceIDData(const std::string& app_id) = 0; 322 virtual std::string GetInstanceIDData(const std::string& app_id) = 0;
323
324 // Gets and sets custom heartbeat interval for the MCS connection.
325 // |scope| is used to identify the component that requests a custom interval
326 // to be set, and allows that component to later revoke the setting. It should
327 // be unique.
328 virtual void AddHeartbeatInterval(const std::string& scope,
329 int interval_ms) = 0;
330 virtual void RemoveHeartbeatInterval(const std::string& scope) = 0;
323 }; 331 };
324 332
325 } // namespace gcm 333 } // namespace gcm
326 334
327 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_ 335 #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/fake_gcm_driver.cc ('k') | components/gcm_driver/gcm_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698