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 { | |
|
nyquist
2016/08/05 23:03:23
It would be great with a high level description of
Menglin
2016/08/06 00:57:00
Done
| |
| 14 public: | |
| 15 BlimpContentsManager(); | |
| 16 ~BlimpContentsManager(); | |
| 17 | |
| 18 std::unique_ptr<BlimpContentsImpl> CreateBlimpContents(); | |
|
nyquist
2016/08/05 23:03:23
It's probably helpful to add a comment for each of
Menglin
2016/08/06 00:57:00
Given I added high level description for the class
| |
| 19 BlimpContentsImpl* GetBlimpContents(int id); | |
| 20 | |
| 21 private: | |
| 22 class BlimpContentsDeletionObserver; | |
| 23 friend class BlimpContentsDeletionObserver; | |
| 24 | |
| 25 int CreateBlimpContentsId(); | |
|
nyquist
2016/08/05 23:03:23
I think it's helpful to in general document what t
Menglin
2016/08/06 00:57:00
Done.
| |
| 26 void EraseObserverFromMap(int id); | |
| 27 base::WeakPtr<BlimpContentsManager> GetWeakPtr(); | |
| 28 | |
| 29 std::map<int, std::unique_ptr<BlimpContentsDeletionObserver>> observer_map_; | |
|
nyquist
2016/08/05 23:03:23
Could you explain what this does?
Menglin
2016/08/06 00:57:00
Done.
| |
| 30 | |
| 31 base::WeakPtrFactory<BlimpContentsManager> weak_ptr_factory_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(BlimpContentsManager); | |
| 34 }; | |
| 35 | |
| 36 } // namespace client | |
| 37 } // namespace blimp | |
| 38 | |
| 39 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_MANAGER_H_ | |
| OLD | NEW |