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_ADDRESS_DETECTOR_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_ADDRESS_DETECTOR_H_ |
6 #define CONTENT_RENDERER_ANDROID_ADDRESS_DETECTOR_H_ | 6 #define CONTENT_RENDERER_ANDROID_ADDRESS_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 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
12 | 11 |
13 namespace content { | 12 namespace content { |
14 | 13 |
15 // Finds a geographical address (currently US only) in the given text string. | 14 // Finds a geographical address (currently US only) in the given text string. |
16 class AddressDetector : public ContentDetector { | 15 class AddressDetector : public ContentDetector { |
17 public: | 16 public: |
(...skipping 11 matching lines...) Expand all Loading... |
29 virtual size_t GetMaximumContentLength() OVERRIDE; | 28 virtual size_t GetMaximumContentLength() OVERRIDE; |
30 | 29 |
31 std::string GetContentText(const string16& text); | 30 std::string GetContentText(const string16& text); |
32 | 31 |
33 DISALLOW_COPY_AND_ASSIGN(AddressDetector); | 32 DISALLOW_COPY_AND_ASSIGN(AddressDetector); |
34 }; | 33 }; |
35 | 34 |
36 } // namespace content | 35 } // namespace content |
37 | 36 |
38 #endif // CONTENT_RENDERER_ANDROID_ADDRESS_DETECTOR_H_ | 37 #endif // CONTENT_RENDERER_ANDROID_ADDRESS_DETECTOR_H_ |
OLD | NEW |