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

Side by Side Diff: content/renderer/android/address_detector.h

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/test/test_utils.cc ('k') | content/renderer/android/address_detector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/renderer/android/content_detector.h" 9 #include "content/renderer/android/content_detector.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 // 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.
15 class AddressDetector : public ContentDetector { 15 class AddressDetector : public ContentDetector {
16 public: 16 public:
17 AddressDetector(); 17 AddressDetector();
18 virtual ~AddressDetector(); 18 virtual ~AddressDetector();
19 19
20 private: 20 private:
21 // Implementation of ContentDetector. 21 // Implementation of ContentDetector.
22 virtual bool FindContent(const string16::const_iterator& begin, 22 virtual bool FindContent(const base::string16::const_iterator& begin,
23 const string16::const_iterator& end, 23 const base::string16::const_iterator& end,
24 size_t* start_pos, 24 size_t* start_pos,
25 size_t* end_pos, 25 size_t* end_pos,
26 std::string* content_text) OVERRIDE; 26 std::string* content_text) OVERRIDE;
27 virtual GURL GetIntentURL(const std::string& content_text) OVERRIDE; 27 virtual GURL GetIntentURL(const std::string& content_text) OVERRIDE;
28 virtual size_t GetMaximumContentLength() OVERRIDE; 28 virtual size_t GetMaximumContentLength() OVERRIDE;
29 29
30 std::string GetContentText(const string16& text); 30 std::string GetContentText(const base::string16& text);
31 31
32 DISALLOW_COPY_AND_ASSIGN(AddressDetector); 32 DISALLOW_COPY_AND_ASSIGN(AddressDetector);
33 }; 33 };
34 34
35 } // namespace content 35 } // namespace content
36 36
37 #endif // CONTENT_RENDERER_ANDROID_ADDRESS_DETECTOR_H_ 37 #endif // CONTENT_RENDERER_ANDROID_ADDRESS_DETECTOR_H_
OLDNEW
« no previous file with comments | « content/public/test/test_utils.cc ('k') | content/renderer/android/address_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698