OLD | NEW |
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 #include "mojo/edk/embedder/embedder.h" | 5 #include "mojo/edk/embedder/embedder.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <utility> |
8 | 9 |
9 #include "base/bind.h" | 10 #include "base/bind.h" |
10 #include "base/location.h" | 11 #include "base/location.h" |
11 #include "base/logging.h" | 12 #include "base/logging.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
14 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
15 #include "base/task_runner.h" | 16 #include "base/task_runner.h" |
16 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
17 #include "mojo/edk/embedder/embedder_internal.h" | 18 #include "mojo/edk/embedder/embedder_internal.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 return base::HexEncode(random_bytes, 16); | 187 return base::HexEncode(random_bytes, 16); |
187 } | 188 } |
188 | 189 |
189 MojoResult SetProperty(MojoPropertyType type, const void* value) { | 190 MojoResult SetProperty(MojoPropertyType type, const void* value) { |
190 CHECK(internal::g_core); | 191 CHECK(internal::g_core); |
191 return internal::g_core->SetProperty(type, value); | 192 return internal::g_core->SetProperty(type, value); |
192 } | 193 } |
193 | 194 |
194 } // namespace edk | 195 } // namespace edk |
195 } // namespace mojo | 196 } // namespace mojo |
OLD | NEW |