Chromium Code Reviews| Index: blimp/client/core/contents/blimp_contents_manager.h |
| diff --git a/blimp/client/core/contents/blimp_contents_manager.h b/blimp/client/core/contents/blimp_contents_manager.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..93b95a3b895ca773b0eee3d60dee475c560b792b |
| --- /dev/null |
| +++ b/blimp/client/core/contents/blimp_contents_manager.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright 2016 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 BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_MANAGER_H_ |
| +#define BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_MANAGER_H_ |
| + |
| +#include "blimp/client/core/contents/blimp_contents_impl.h" |
| + |
| +namespace blimp { |
| +namespace client { |
| + |
| +class BlimpContentsManager { |
| + public: |
| + BlimpContentsManager(); |
| + ~BlimpContentsManager(); |
| + |
| + std::unique_ptr<BlimpContentsImpl> CreateBlimpContents(); |
| + BlimpContentsImpl* GetBlimpContents(int id); |
| + |
| + private: |
| + class BlimpContentsDeletionObserver; |
| + |
| + int CreateBlimpContentsId(); |
| + void EraseObserverFromMap(int id); |
| + |
| + std::map<int, std::unique_ptr<BlimpContentsDeletionObserver>> observer_map_; |
|
David Trainor- moved to gerrit
2016/08/03 18:55:43
Can this just be BlimpContentsObserver? Then you
Menglin
2016/08/03 19:25:48
There is an existing BlimpContentsObserver blimp/c
Menglin
2016/08/03 23:49:59
Actually as i looked at the code again. I think fi
David Trainor- moved to gerrit
2016/08/04 16:21:18
Hmm maybe put this back in the cc file and make it
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(BlimpContentsManager); |
| +}; |
| + |
| +} // namespace client |
| +} // namespace blimp |
| + |
| +#endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_MANAGER_H_ |