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

Unified Diff: chrome/browser/ui/webui/copresence_ui_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
« no previous file with comments | « chrome/browser/ui/webui/copresence_ui.cc ('k') | chrome/browser/ui/webui/copresence_ui_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/copresence_ui_handler.h
diff --git a/chrome/browser/ui/webui/copresence_ui_handler.h b/chrome/browser/ui/webui/copresence_ui_handler.h
deleted file mode 100644
index f4d32ce4df44718932b460559f85955df4fe7f58..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/copresence_ui_handler.h
+++ /dev/null
@@ -1,52 +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 CHROME_BROWSER_UI_WEBUI_COPRESENCE_UI_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_COPRESENCE_UI_HANDLER_H_
-
-#include "base/macros.h"
-#include "components/copresence/public/copresence_observer.h"
-#include "content/public/browser/web_ui_message_handler.h"
-
-namespace base {
-class ListValue;
-}
-
-namespace content {
-class WebUI;
-}
-
-namespace copresence {
-class CopresenceState;
-}
-
-// UI Handler for the copresence page.
-// TODO(crbug.com/444263): Write tests.
-class CopresenceUIHandler final : public content::WebUIMessageHandler,
- public copresence::CopresenceObserver {
- public:
- explicit CopresenceUIHandler(content::WebUI* web_ui);
- ~CopresenceUIHandler() override;
-
- private:
- // WebUIMessageHandler override.
- void RegisterMessages() override;
-
- // CopresenceObserver overrides.
- void DirectivesUpdated() override;
- void TokenTransmitted(const copresence::TransmittedToken& token) override;
- void TokenReceived(const copresence::ReceivedToken& token) override;
-
- // Handler to populate the page with its initial state.
- void HandlePopulateState(const base::ListValue* args);
-
- // Handler for the clear state button.
- void HandleClearState(const base::ListValue* args);
-
- copresence::CopresenceState* state_;
-
- DISALLOW_COPY_AND_ASSIGN(CopresenceUIHandler);
-};
-
-#endif // CHROME_BROWSER_UI_WEBUI_COPRESENCE_UI_HANDLER_H_
« no previous file with comments | « chrome/browser/ui/webui/copresence_ui.cc ('k') | chrome/browser/ui/webui/copresence_ui_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698