| 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 CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ |
| 6 #define CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ | 6 #define CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
| 17 #include "chrome/browser/cancelable_request.h" | 17 #include "chrome/browser/common/cancelable_request.h" |
| 18 #include "chrome/browser/favicon/favicon_service.h" | 18 #include "chrome/browser/favicon/favicon_service.h" |
| 19 #include "chrome/browser/history/android/android_history_provider_service.h" | 19 #include "chrome/browser/history/android/android_history_provider_service.h" |
| 20 #include "chrome/browser/history/history_types.h" | 20 #include "chrome/browser/history/history_types.h" |
| 21 | 21 |
| 22 // This class is JNI implementation of | 22 // This class is JNI implementation of |
| 23 // org.chromium.chrome.database.SqliteCursor, it uses the AndroidStatement to | 23 // org.chromium.chrome.database.SqliteCursor, it uses the AndroidStatement to |
| 24 // iterate among the result rows. This is not thread safe, all methods should | 24 // iterate among the result rows. This is not thread safe, all methods should |
| 25 // be called from the same non-UI thread which typical is the Java thread. | 25 // be called from the same non-UI thread which typical is the Java thread. |
| 26 // | 26 // |
| 27 // This class can not be in history namespace because the class name has to | 27 // This class can not be in history namespace because the class name has to |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 187 |
| 188 // The favicon image. | 188 // The favicon image. |
| 189 history::FaviconBitmapResult favicon_bitmap_result_; | 189 history::FaviconBitmapResult favicon_bitmap_result_; |
| 190 | 190 |
| 191 TestObserver* test_observer_; | 191 TestObserver* test_observer_; |
| 192 | 192 |
| 193 DISALLOW_COPY_AND_ASSIGN(SQLiteCursor); | 193 DISALLOW_COPY_AND_ASSIGN(SQLiteCursor); |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 #endif // CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ | 196 #endif // CHROME_BROWSER_HISTORY_ANDROID_SQLITE_CURSOR_H_ |
| OLD | NEW |