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

Unified Diff: android_webview/native/address_parser.h

Issue 2803163002: Move address parser and prefixes to android_webview/. (Closed)
Patch Set: Bring back ContentViewStatics import 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/native/BUILD.gn ('k') | android_webview/native/address_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/address_parser.h
diff --git a/content/common/android/address_parser.h b/android_webview/native/address_parser.h
similarity index 64%
rename from content/common/android/address_parser.h
rename to android_webview/native/address_parser.h
index cff7f5cf710c8439177bbf5dc9fe2877c49d6794..43fdc391063596d9371cf21a8669168e17d6a48f 100644
--- a/content/common/android/address_parser.h
+++ b/android_webview/native/address_parser.h
@@ -2,15 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_ANDROID_ADDRESS_PARSER_H_
-#define CONTENT_COMMON_ANDROID_ADDRESS_PARSER_H_
+#ifndef ANDROID_WEBVIEW_NATIVE_ADDRESS_PARSER_H_
+#define ANDROID_WEBVIEW_NATIVE_ADDRESS_PARSER_H_
#include <stddef.h>
#include "base/strings/string16.h"
-#include "content/common/content_export.h"
-namespace content {
+namespace android_webview {
// Provides methods to find a geographical address (currently US only)
// in a given text string.
@@ -25,13 +24,13 @@ bool FindAddress(const base::string16& text, base::string16* address);
// position to search from, |end| is the position to search to. |start_pos|
// and |end_pos| are set to the starting and ending position of the address,
// if found.
-CONTENT_EXPORT bool FindAddress(const base::string16::const_iterator& begin,
- const base::string16::const_iterator& end,
- size_t* start_pos,
- size_t* end_pos);
+bool FindAddress(const base::string16::const_iterator& begin,
+ const base::string16::const_iterator& end,
+ size_t* start_pos,
+ size_t* end_pos);
} // namespace address_parser
-} // namespace content
+} // namespace android_webview
-#endif // CONTENT_COMMON_ANDROID_ADDRESS_PARSER_H_
+#endif // ANDROID_WEBVIEW_NATIVE_ADDRESS_PARSER_H_
« no previous file with comments | « android_webview/native/BUILD.gn ('k') | android_webview/native/address_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698