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

Unified Diff: components/copresence/public/copresence_manager.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/public/copresence_manager.h
diff --git a/components/copresence/public/copresence_manager.h b/components/copresence/public/copresence_manager.h
deleted file mode 100644
index 0807f22c8f8bc41ab2f4965b6515bb9fd8649ea9..0000000000000000000000000000000000000000
--- a/components/copresence/public/copresence_manager.h
+++ /dev/null
@@ -1,46 +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_PUBLIC_COPRESENCE_MANAGER_H_
-#define COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_MANAGER_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "components/copresence/public/copresence_delegate.h"
-
-namespace copresence {
-
-class CopresenceState;
-class ReportRequest;
-
-// The CopresenceManager class is the central interface for Copresence
-// functionality. This class handles all the initialization and delegation
-// of copresence tasks. Any user of copresence only needs to interact
-// with this class.
-class CopresenceManager {
- public:
- CopresenceManager() {}
- virtual ~CopresenceManager() {}
-
- // Accessor for the CopresenceState instance that tracks debug info.
- virtual CopresenceState* state() = 0;
-
- // This method will execute a report request. Each report request can have
- // multiple (un)publishes, (un)subscribes. This will ensure that once the
- // manager is initialized, it sends all request to the server and handles
- // the response. If an error is encountered, the status callback is used
- // to relay it to the requester.
- virtual void ExecuteReportRequest(const ReportRequest& request,
- const std::string& app_id,
- const std::string& auth_token,
- const StatusCallback& callback) = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(CopresenceManager);
-};
-
-} // namespace copresence
-
-#endif // COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_MANAGER_H_
« no previous file with comments | « components/copresence/public/copresence_delegate.h ('k') | components/copresence/public/copresence_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698