| OLD | NEW |
| 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_COPRESENCE_HANDLERS_DIRECTIVE_HANDLER_IMPL_H_ | 5 #ifndef COMPONENTS_COPRESENCE_HANDLERS_DIRECTIVE_HANDLER_IMPL_H_ |
| 6 #define COMPONENTS_COPRESENCE_HANDLERS_DIRECTIVE_HANDLER_IMPL_H_ | 6 #define COMPONENTS_COPRESENCE_HANDLERS_DIRECTIVE_HANDLER_IMPL_H_ |
| 7 | 7 |
| 8 #include "components/copresence/handlers/directive_handler.h" | 8 #include "components/copresence/handlers/directive_handler.h" |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "components/copresence/handlers/audio/audio_directive_handler_impl.h" | 16 #include "components/copresence/handlers/audio/audio_directive_handler_impl.h" |
| 16 #include "components/copresence/public/copresence_constants.h" | 17 #include "components/copresence/public/copresence_constants.h" |
| 17 | 18 |
| 18 namespace copresence { | 19 namespace copresence { |
| 19 | 20 |
| 20 // The directive handler manages transmit and receive directives. | 21 // The directive handler manages transmit and receive directives. |
| 21 class DirectiveHandlerImpl final : public DirectiveHandler { | 22 class DirectiveHandlerImpl final : public DirectiveHandler { |
| 22 public: | 23 public: |
| 23 DirectiveHandlerImpl(); | 24 DirectiveHandlerImpl(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 44 std::map<std::string, std::vector<Directive>> pending_directives_; | 45 std::map<std::string, std::vector<Directive>> pending_directives_; |
| 45 | 46 |
| 46 bool is_started_; | 47 bool is_started_; |
| 47 | 48 |
| 48 DISALLOW_COPY_AND_ASSIGN(DirectiveHandlerImpl); | 49 DISALLOW_COPY_AND_ASSIGN(DirectiveHandlerImpl); |
| 49 }; | 50 }; |
| 50 | 51 |
| 51 } // namespace copresence | 52 } // namespace copresence |
| 52 | 53 |
| 53 #endif // COMPONENTS_COPRESENCE_HANDLERS_DIRECTIVE_HANDLER_IMPL_H_ | 54 #endif // COMPONENTS_COPRESENCE_HANDLERS_DIRECTIVE_HANDLER_IMPL_H_ |
| OLD | NEW |