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

Side by Side Diff: mojo/public/cpp/bindings/strong_binding.h

Issue 2114523002: Move more Mojo bindings helpers out of internal namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@group-controller
Patch Set: rebase Created 4 years, 5 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
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_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "mojo/public/cpp/bindings/binding.h" 14 #include "mojo/public/cpp/bindings/binding.h"
15 #include "mojo/public/cpp/bindings/interface_ptr.h" 15 #include "mojo/public/cpp/bindings/interface_ptr.h"
16 #include "mojo/public/cpp/bindings/interface_request.h" 16 #include "mojo/public/cpp/bindings/interface_request.h"
17 #include "mojo/public/cpp/bindings/lib/filter_chain.h" 17 #include "mojo/public/cpp/bindings/lib/filter_chain.h"
18 #include "mojo/public/cpp/bindings/lib/message_header_validator.h"
19 #include "mojo/public/cpp/bindings/lib/router.h" 18 #include "mojo/public/cpp/bindings/lib/router.h"
19 #include "mojo/public/cpp/bindings/message_header_validator.h"
20 #include "mojo/public/cpp/system/core.h" 20 #include "mojo/public/cpp/system/core.h"
21 21
22 namespace mojo { 22 namespace mojo {
23 23
24 // This connects an interface implementation strongly to a pipe. When a 24 // This connects an interface implementation strongly to a pipe. When a
25 // connection error is detected the implementation is deleted. Deleting the 25 // connection error is detected the implementation is deleted. Deleting the
26 // connector also closes the pipe. 26 // connector also closes the pipe.
27 // 27 //
28 // Example of an implementation that is always bound strongly to a pipe 28 // Example of an implementation that is always bound strongly to a pipe
29 // 29 //
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 private: 117 private:
118 base::Closure connection_error_handler_; 118 base::Closure connection_error_handler_;
119 Binding<Interface> binding_; 119 Binding<Interface> binding_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(StrongBinding); 121 DISALLOW_COPY_AND_ASSIGN(StrongBinding);
122 }; 122 };
123 123
124 } // namespace mojo 124 } // namespace mojo
125 125
126 #endif // MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_ 126 #endif // MOJO_PUBLIC_CPP_BINDINGS_STRONG_BINDING_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/pipe_control_message_proxy.h ('k') | mojo/public/cpp/bindings/sync_handle_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698