Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_MANAGER_H_ | |
| 6 #define BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_MANAGER_H_ | |
| 7 | |
| 8 #include "blimp/client/core/contents/blimp_contents_impl.h" | |
| 9 | |
| 10 namespace blimp { | |
| 11 namespace client { | |
| 12 | |
| 13 class BlimpContentsManager { | |
| 14 public: | |
| 15 BlimpContentsManager(); | |
| 16 ~BlimpContentsManager(); | |
| 17 | |
| 18 std::unique_ptr<BlimpContentsImpl> CreateBlimpContents(); | |
| 19 BlimpContentsImpl* GetBlimpContents(int id); | |
| 20 | |
| 21 private: | |
| 22 class BlimpContentsDeletionObserver; | |
| 23 | |
| 24 int CreateBlimpContentsId(); | |
| 25 void EraseObserverFromMap(int id); | |
| 26 | |
| 27 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
| |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(BlimpContentsManager); | |
| 30 }; | |
| 31 | |
| 32 } // namespace client | |
| 33 } // namespace blimp | |
| 34 | |
| 35 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_MANAGER_H_ | |
| OLD | NEW |