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

Unified Diff: third_party/libaddressinput/chromium/trie.h

Issue 298863012: Use upstream libaddressinput in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review. Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/libaddressinput/chromium/trie.h
diff --git a/third_party/libaddressinput/chromium/cpp/src/util/trie.h b/third_party/libaddressinput/chromium/trie.h
similarity index 62%
rename from third_party/libaddressinput/chromium/cpp/src/util/trie.h
rename to third_party/libaddressinput/chromium/trie.h
index 6b1792b98733cce0350f863bc3270a308208ce5c..38550fd79bb74fbd82dbfc62253f1dfc9dd35f6d 100644
--- a/third_party/libaddressinput/chromium/cpp/src/util/trie.h
+++ b/third_party/libaddressinput/chromium/trie.h
@@ -1,29 +1,18 @@
-// Copyright (C) 2014 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
-#ifndef I18N_ADDRESSINPUT_UTIL_TRIE_H_
-#define I18N_ADDRESSINPUT_UTIL_TRIE_H_
-
-#include <libaddressinput/util/basictypes.h>
+#ifndef THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_TRIE_H_
+#define THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_TRIE_H_
#include <list>
#include <map>
#include <set>
#include <string>
-namespace i18n {
-namespace addressinput {
+#include "base/basictypes.h"
+
+namespace autofill {
// A prefix search tree. Can return all objects whose keys start with a prefix
// string.
@@ -36,7 +25,6 @@ template <typename T>
class Trie {
public:
Trie();
-
~Trie();
// Adds a mapping from |key| to |data_item|. Can be called with the same |key|
@@ -62,7 +50,6 @@ class Trie {
DISALLOW_COPY_AND_ASSIGN(Trie);
};
-} // namespace addressinput
-} // namespace i18n
+} // namespace autofill
-#endif // I18N_ADDRESSINPUT_UTIL_TRIE_H_
+#endif // THIRD_PARTY_LIBADDRESSINPUT_CHROMIUM_TRIE_H_

Powered by Google App Engine
This is Rietveld 408576698