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 #pragma once | |
8 | 7 |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
10 #include "content/renderer/android/content_detector.h" | 9 #include "content/renderer/android/content_detector.h" |
11 | 10 |
12 class PhoneNumberDetectorTest; | 11 class PhoneNumberDetectorTest; |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 // Finds a telephone number in the given content text string. | 15 // Finds a telephone number in the given content text string. |
17 class PhoneNumberDetector : public ContentDetector { | 16 class PhoneNumberDetector : public ContentDetector { |
(...skipping 15 matching lines...) Expand all Loading... |
33 virtual size_t GetMaximumContentLength() OVERRIDE; | 32 virtual size_t GetMaximumContentLength() OVERRIDE; |
34 | 33 |
35 const std::string region_code_; | 34 const std::string region_code_; |
36 | 35 |
37 DISALLOW_COPY_AND_ASSIGN(PhoneNumberDetector); | 36 DISALLOW_COPY_AND_ASSIGN(PhoneNumberDetector); |
38 }; | 37 }; |
39 | 38 |
40 } // namespace content | 39 } // namespace content |
41 | 40 |
42 #endif // CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_ | 41 #endif // CONTENT_RENDERER_ANDROID_PHONE_NUMBER_DETECTOR_H_ |
OLD | NEW |