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

Side by Side Diff: third_party/mojo_services/src/view_manager/public/cpp/view_tracker.h

Issue 1019173002: Update mojo sdk to rev 7214b7ec7d27563b2666afad86cf1c5895c56c18 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep permission service alive if embedder drops requests Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « third_party/mojo_services/src/view_manager/public/cpp/tests/view_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <set> 9 #include <set>
10 10
(...skipping 16 matching lines...) Expand all
27 void Add(View* view); 27 void Add(View* view);
28 28
29 // Removes |view| from the set of views being tracked. 29 // Removes |view| from the set of views being tracked.
30 void Remove(View* view); 30 void Remove(View* view);
31 31
32 // Returns true if |view| was previously added and has not been removed or 32 // Returns true if |view| was previously added and has not been removed or
33 // deleted. 33 // deleted.
34 bool Contains(View* view); 34 bool Contains(View* view);
35 35
36 // ViewObserver overrides: 36 // ViewObserver overrides:
37 virtual void OnViewDestroying(View* view) override; 37 void OnViewDestroying(View* view) override;
38 38
39 private: 39 private:
40 Views views_; 40 Views views_;
41 41
42 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewTracker); 42 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewTracker);
43 }; 43 };
44 44
45 } // namespace mojo 45 } // namespace mojo
46 46
47 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_ 47 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_VIEW_TRACKER_H_
OLDNEW
« no previous file with comments | « third_party/mojo_services/src/view_manager/public/cpp/tests/view_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698