OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_FIND_HELPER_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_FIND_HELPER_H_ |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_FIND_HELPER_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_FIND_HELPER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
14 #include "base/values.h" | 15 #include "base/values.h" |
15 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
16 #include "third_party/WebKit/public/web/WebFindOptions.h" | 17 #include "third_party/WebKit/public/web/WebFindOptions.h" |
17 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
18 | 19 |
19 namespace extensions { | 20 namespace extensions { |
20 class WebViewInternalFindFunction; | 21 class WebViewInternalFindFunction; |
21 class WebViewGuest; | 22 class WebViewGuest; |
22 | 23 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // function can be called when its find results are available. | 185 // function can be called when its find results are available. |
185 using FindInfoMap = std::map<int, scoped_refptr<FindInfo>>; | 186 using FindInfoMap = std::map<int, scoped_refptr<FindInfo>>; |
186 FindInfoMap find_info_map_; | 187 FindInfoMap find_info_map_; |
187 | 188 |
188 DISALLOW_COPY_AND_ASSIGN(WebViewFindHelper); | 189 DISALLOW_COPY_AND_ASSIGN(WebViewFindHelper); |
189 }; | 190 }; |
190 | 191 |
191 } // namespace extensions | 192 } // namespace extensions |
192 | 193 |
193 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_FIND_HELPER_H_ | 194 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_FIND_HELPER_H_ |
OLD | NEW |