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

Unified Diff: blimp/client/core/contents/blimp_contents_manager.h

Issue 2371503002: Add Blimp feedback data about visible BlimpContents. (Closed)
Patch Set: Rebased for good measure Created 4 years, 3 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: 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
index 07b922eb5e2dacd4aacc9366a20c8d1a2c856206..3e8bb5752c2ffe2151d6e50ee915ea908eadf234 100644
--- a/blimp/client/core/contents/blimp_contents_manager.h
+++ b/blimp/client/core/contents/blimp_contents_manager.h
@@ -6,6 +6,7 @@
#define BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_MANAGER_H_
#include <map>
+#include <vector>
#include "base/memory/weak_ptr.h"
#include "blimp/client/core/contents/blimp_contents_impl.h"
@@ -44,6 +45,10 @@ class BlimpContentsManager {
// The caller can query the contents through its id.
BlimpContentsImpl* GetBlimpContents(int id);
+ // Returns a vector of the currently active BlimpContentsImpls. There is no
+ // guarantee for the lifetime of these pointers after this stack frame.
+ std::vector<BlimpContentsImpl*> GetAllActiveBlimpContents();
+
private:
class BlimpContentsDeletionObserver;
friend class BlimpContentsDeletionObserver;
« no previous file with comments | « blimp/client/core/compositor/blimp_compositor_manager.h ('k') | blimp/client/core/contents/blimp_contents_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698