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

Unified Diff: content/renderer/android/phone_number_detector.h

Issue 2790893004: Delete Android content detectors. (Closed)
Patch Set: Rebase 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
Index: content/renderer/android/phone_number_detector.h
diff --git a/content/renderer/android/phone_number_detector.h b/content/renderer/android/phone_number_detector.h
deleted file mode 100644
index 2d6b4d27b0e942a75b55d2755a528dcc32788637..0000000000000000000000000000000000000000
--- a/content/renderer/android/phone_number_detector.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 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 CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_
-#define CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_
-
-#include <stddef.h>
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "content/common/content_export.h"
-#include "content/renderer/android/content_detector.h"
-
-namespace content {
-
-class PhoneNumberDetectorTest;
-
-// Finds a telephone number in the given content text string.
-class CONTENT_EXPORT PhoneNumberDetector : public ContentDetector {
- public:
- PhoneNumberDetector();
- explicit PhoneNumberDetector(const std::string& region);
- ~PhoneNumberDetector() override;
-
- private:
- friend class PhoneNumberDetectorTest;
-
- // Implementation of ContentDetector.
- bool FindContent(const base::string16::const_iterator& begin,
- const base::string16::const_iterator& end,
- size_t* start_pos,
- size_t* end_pos,
- std::string* content_text) override;
- GURL GetIntentURL(const std::string& content_text) override;
- size_t GetMaximumContentLength() override;
-
- const std::string region_code_;
-
- DISALLOW_COPY_AND_ASSIGN(PhoneNumberDetector);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_
« no previous file with comments | « content/renderer/android/email_detector_unittest.cc ('k') | content/renderer/android/phone_number_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698