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

Unified Diff: components/copresence/handlers/gcm_handler.h

Issue 2130803002: Deleting the copresence API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/copresence/handlers/gcm_handler.h
diff --git a/components/copresence/handlers/gcm_handler.h b/components/copresence/handlers/gcm_handler.h
deleted file mode 100644
index 341a7d8ca69768b569993a80139b7b2ad9376e64..0000000000000000000000000000000000000000
--- a/components/copresence/handlers/gcm_handler.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_COPRESENCE_HANDLERS_GCM_HANDLER_H_
-#define COMPONENTS_COPRESENCE_HANDLERS_GCM_HANDLER_H_
-
-#include <string>
-
-#include "base/callback_forward.h"
-#include "base/macros.h"
-
-namespace gcm {
-class GCMDriver;
-}
-
-namespace copresence {
-
-// A class to handle GCM messages from the Copresence server. As far as the
-// rest of the system is concerned, it simply provides the registered GCM ID.
-// The implementation will call other classes to enact the message contents.
-class GCMHandler {
- public:
- // Callback to report that registration has completed.
- // Returns an empty ID if registration failed.
- using RegistrationCallback = base::Callback<void(const std::string&)>;
-
- GCMHandler() {}
- virtual ~GCMHandler() {}
-
- // Request the GCM ID. It may be returned now or later, via the callback.
- virtual void GetGcmId(const RegistrationCallback& callback) = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(GCMHandler);
-};
-
-} // namespace copresence
-
-#endif // COMPONENTS_COPRESENCE_HANDLERS_GCM_HANDLER_H_
« no previous file with comments | « components/copresence/handlers/directive_handler_unittest.cc ('k') | components/copresence/handlers/gcm_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698