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

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

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
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 <stddef.h>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
9 #include "content/renderer/android/content_detector.h" 12 #include "content/renderer/android/content_detector.h"
10 #include "url/gurl.h" 13 #include "url/gurl.h"
11 14
12 namespace content { 15 namespace content {
13 16
14 // Finds a geographical address (currently US only) in the given text string. 17 // Finds a geographical address (currently US only) in the given text string.
15 class AddressDetector : public ContentDetector { 18 class AddressDetector : public ContentDetector {
16 public: 19 public:
17 AddressDetector(); 20 AddressDetector();
18 ~AddressDetector() override; 21 ~AddressDetector() override;
19 22
20 private: 23 private:
21 // Implementation of ContentDetector. 24 // Implementation of ContentDetector.
22 bool FindContent(const base::string16::const_iterator& begin, 25 bool FindContent(const base::string16::const_iterator& begin,
23 const base::string16::const_iterator& end, 26 const base::string16::const_iterator& end,
24 size_t* start_pos, 27 size_t* start_pos,
25 size_t* end_pos, 28 size_t* end_pos,
26 std::string* content_text) override; 29 std::string* content_text) override;
27 GURL GetIntentURL(const std::string& content_text) override; 30 GURL GetIntentURL(const std::string& content_text) override;
28 size_t GetMaximumContentLength() override; 31 size_t GetMaximumContentLength() override;
29 32
30 std::string GetContentText(const base::string16& text); 33 std::string GetContentText(const base::string16& text);
31 34
32 DISALLOW_COPY_AND_ASSIGN(AddressDetector); 35 DISALLOW_COPY_AND_ASSIGN(AddressDetector);
33 }; 36 };
34 37
35 } // namespace content 38 } // namespace content
36 39
37 #endif // CONTENT_RENDERER_ANDROID_ADDRESS_DETECTOR_H_ 40 #endif // CONTENT_RENDERER_ANDROID_ADDRESS_DETECTOR_H_
OLDNEW
« no previous file with comments | « content/renderer/accessibility/renderer_accessibility_browsertest.cc ('k') | content/renderer/android/content_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698