OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_ |
6 #define CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_ | 6 #define CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
9 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
10 #include "content/renderer/android/content_detector.h" | 13 #include "content/renderer/android/content_detector.h" |
11 | 14 |
12 namespace content { | 15 namespace content { |
13 | 16 |
14 class PhoneNumberDetectorTest; | 17 class PhoneNumberDetectorTest; |
15 | 18 |
16 // Finds a telephone number in the given content text string. | 19 // Finds a telephone number in the given content text string. |
17 class CONTENT_EXPORT PhoneNumberDetector : public ContentDetector { | 20 class CONTENT_EXPORT PhoneNumberDetector : public ContentDetector { |
18 public: | 21 public: |
(...skipping 14 matching lines...) Expand all Loading... |
33 size_t GetMaximumContentLength() override; | 36 size_t GetMaximumContentLength() override; |
34 | 37 |
35 const std::string region_code_; | 38 const std::string region_code_; |
36 | 39 |
37 DISALLOW_COPY_AND_ASSIGN(PhoneNumberDetector); | 40 DISALLOW_COPY_AND_ASSIGN(PhoneNumberDetector); |
38 }; | 41 }; |
39 | 42 |
40 } // namespace content | 43 } // namespace content |
41 | 44 |
42 #endif // CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_ | 45 #endif // CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_ |
OLD | NEW |