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

Unified Diff: components/copresence/handlers/directive_handler_impl.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/directive_handler_impl.h
diff --git a/components/copresence/handlers/directive_handler_impl.h b/components/copresence/handlers/directive_handler_impl.h
deleted file mode 100644
index cfee1c7504d9f4d69a8f8f676c765471794b13e0..0000000000000000000000000000000000000000
--- a/components/copresence/handlers/directive_handler_impl.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 COMPONENTS_COPRESENCE_HANDLERS_DIRECTIVE_HANDLER_IMPL_H_
-#define COMPONENTS_COPRESENCE_HANDLERS_DIRECTIVE_HANDLER_IMPL_H_
-
-#include <map>
-#include <memory>
-#include <string>
-#include <vector>
-
-#include "base/macros.h"
-#include "components/copresence/handlers/audio/audio_directive_handler_impl.h"
-#include "components/copresence/handlers/directive_handler.h"
-#include "components/copresence/public/copresence_constants.h"
-
-namespace copresence {
-
-// The directive handler manages transmit and receive directives.
-class DirectiveHandlerImpl final : public DirectiveHandler {
- public:
- DirectiveHandlerImpl();
- explicit DirectiveHandlerImpl(
- const DirectivesCallback& update_directives_callback);
- DirectiveHandlerImpl(std::unique_ptr<AudioDirectiveHandler> audio_handler);
- ~DirectiveHandlerImpl() override;
-
- // DirectiveHandler overrides.
- void Start(audio_modem::WhispernetClient* whispernet_client,
- const audio_modem::TokensCallback& tokens_cb) override;
- void AddDirective(const Directive& directive) override;
- void RemoveDirectives(const std::string& op_id) override;
- const std::string
- GetCurrentAudioToken(audio_modem::AudioType type) const override;
- bool IsAudioTokenHeard(audio_modem::AudioType type) const override;
-
- private:
- // Starts actually running a directive.
- void StartDirective(const std::string& op_id, const Directive& directive);
-
- std::unique_ptr<AudioDirectiveHandler> audio_handler_;
- std::map<std::string, std::vector<Directive>> pending_directives_;
-
- bool is_started_;
-
- DISALLOW_COPY_AND_ASSIGN(DirectiveHandlerImpl);
-};
-
-} // namespace copresence
-
-#endif // COMPONENTS_COPRESENCE_HANDLERS_DIRECTIVE_HANDLER_IMPL_H_
« no previous file with comments | « components/copresence/handlers/directive_handler.h ('k') | components/copresence/handlers/directive_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698