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

Side by Side Diff: shell/domain_socket/completion_callback.h

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « shell/domain_socket/BUILD.gn ('k') | shell/domain_socket/net_error_list.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SHELL_DOMAIN_SOCKET_COMPLETION_CALLBACK_H__ 5 #ifndef SHELL_DOMAIN_SOCKET_COMPLETION_CALLBACK_H__
6 #define MOJO_SHELL_DOMAIN_SOCKET_COMPLETION_CALLBACK_H__ 6 #define SHELL_DOMAIN_SOCKET_COMPLETION_CALLBACK_H__
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/cancelable_callback.h" 9 #include "base/cancelable_callback.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 namespace shell { 12 namespace shell {
13 13
14 // A callback specialization that takes a single int parameter. Usually this is 14 // A callback specialization that takes a single int parameter. Usually this is
15 // used to report a byte count or network error code. 15 // used to report a byte count or network error code.
16 typedef base::Callback<void(int)> CompletionCallback; 16 typedef base::Callback<void(int)> CompletionCallback;
17 17
18 // 64bit version of callback specialization that takes a single int64 parameter. 18 // 64bit version of callback specialization that takes a single int64 parameter.
19 // Usually this is used to report a file offset, size or network error code. 19 // Usually this is used to report a file offset, size or network error code.
20 typedef base::Callback<void(int64)> Int64CompletionCallback; 20 typedef base::Callback<void(int64)> Int64CompletionCallback;
21 21
22 typedef base::CancelableCallback<void(int)> CancelableCompletionCallback; 22 typedef base::CancelableCallback<void(int)> CancelableCompletionCallback;
23 23
24 } // namespace shell 24 } // namespace shell
25 } // namespace mojo 25 } // namespace mojo
26 26
27 #endif // MOJO_SHELL_DOMAIN_SOCKET_COMPLETION_CALLBACK_H__ 27 #endif // SHELL_DOMAIN_SOCKET_COMPLETION_CALLBACK_H__
OLDNEW
« no previous file with comments | « shell/domain_socket/BUILD.gn ('k') | shell/domain_socket/net_error_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698