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

Side by Side Diff: mojo/common/weak_binding_set.h

Issue 835463003: Remove client relationship between sky::Inspector{Front,Back}end (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: provide InspectorBackend impl from inspector.sky Created 5 years, 11 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 | « no previous file | mojo/common/weak_interface_ptr_set.h » ('j') | 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_COMMON_WEAK_BINDING_SET_H_
6 #define MOJO_COMMON_WEAK_BINDING_SET_H_
7
5 #include <algorithm> 8 #include <algorithm>
6 #include <vector> 9 #include <vector>
7 10
8 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
9 #include "mojo/public/cpp/bindings/binding.h" 12 #include "mojo/public/cpp/bindings/binding.h"
10 13
11 namespace mojo { 14 namespace mojo {
12 15
13 template <typename Interface> 16 template <typename Interface>
14 class WeakBinding; 17 class WeakBinding;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void OnConnectionError() override { delete this; } 84 void OnConnectionError() override { delete this; }
82 85
83 private: 86 private:
84 mojo::Binding<Interface> binding_; 87 mojo::Binding<Interface> binding_;
85 base::WeakPtrFactory<WeakBinding> weak_ptr_factory_; 88 base::WeakPtrFactory<WeakBinding> weak_ptr_factory_;
86 89
87 DISALLOW_COPY_AND_ASSIGN(WeakBinding); 90 DISALLOW_COPY_AND_ASSIGN(WeakBinding);
88 }; 91 };
89 92
90 } // namespace mojo 93 } // namespace mojo
94
95 #endif // MOJO_COMMON_WEAK_BINDING_SET_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/common/weak_interface_ptr_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698