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

Side by Side Diff: mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h

Issue 2817903002: Rewrite references to "wtf/" to "platform/wtf/" in //mojo. (Closed)
Patch Set: Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_LIB_WTF_CLONE_EQUALS_UTIL_H_ 5 #ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_CLONE_EQUALS_UTIL_H_
6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_CLONE_EQUALS_UTIL_H_ 6 #define MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_CLONE_EQUALS_UTIL_H_
7 7
8 #include <type_traits> 8 #include <type_traits>
9 9
10 #include "mojo/public/cpp/bindings/clone_traits.h" 10 #include "mojo/public/cpp/bindings/clone_traits.h"
11 #include "mojo/public/cpp/bindings/lib/equals_traits.h" 11 #include "mojo/public/cpp/bindings/lib/equals_traits.h"
12 #include "third_party/WebKit/Source/wtf/HashMap.h" 12 #include "third_party/WebKit/Source/platform/wtf/HashMap.h"
13 #include "third_party/WebKit/Source/wtf/Optional.h" 13 #include "third_party/WebKit/Source/platform/wtf/Optional.h"
14 #include "third_party/WebKit/Source/wtf/Vector.h" 14 #include "third_party/WebKit/Source/platform/wtf/Vector.h"
15 #include "third_party/WebKit/Source/wtf/text/WTFString.h" 15 #include "third_party/WebKit/Source/platform/wtf/text/WTFString.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 18
19 template <typename T> 19 template <typename T>
20 struct CloneTraits<WTF::Vector<T>, false> { 20 struct CloneTraits<WTF::Vector<T>, false> {
21 static WTF::Vector<T> Clone(const WTF::Vector<T>& input) { 21 static WTF::Vector<T> Clone(const WTF::Vector<T>& input) {
22 WTF::Vector<T> result; 22 WTF::Vector<T> result;
23 result.reserveCapacity(input.size()); 23 result.reserveCapacity(input.size());
24 for (const auto& element : input) 24 for (const auto& element : input)
25 result.push_back(mojo::Clone(element)); 25 result.push_back(mojo::Clone(element));
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return false; 69 return false;
70 } 70 }
71 return true; 71 return true;
72 } 72 }
73 }; 73 };
74 74
75 } // namespace internal 75 } // namespace internal
76 } // namespace mojo 76 } // namespace mojo
77 77
78 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_CLONE_EQUALS_UTIL_H_ 78 #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_WTF_CLONE_EQUALS_UTIL_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/lib/string_traits_wtf.cc ('k') | mojo/public/cpp/bindings/lib/wtf_hash_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698