| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Data structures for communication between the history service on the main | 5 // Data structures for communication between the history service on the main |
| 6 // thread and the backend on the history thread. | 6 // thread and the backend on the history thread. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H__ | 8 #ifndef CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H__ |
| 9 #define CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H__ | 9 #define CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H__ |
| 10 | 10 |
| 11 #include "base/scoped_vector.h" |
| 11 #include "chrome/browser/cancelable_request.h" | 12 #include "chrome/browser/cancelable_request.h" |
| 12 #include "chrome/browser/history/history.h" | 13 #include "chrome/browser/history/history.h" |
| 13 #include "chrome/browser/history/page_usage_data.h" | 14 #include "chrome/browser/history/page_usage_data.h" |
| 14 #include "chrome/common/scoped_vector.h" | |
| 15 | 15 |
| 16 namespace history { | 16 namespace history { |
| 17 | 17 |
| 18 // Navigation ----------------------------------------------------------------- | 18 // Navigation ----------------------------------------------------------------- |
| 19 | 19 |
| 20 // Marshalling structure for AddPage. | 20 // Marshalling structure for AddPage. |
| 21 class HistoryAddPageArgs : public base::RefCounted<HistoryAddPageArgs> { | 21 class HistoryAddPageArgs : public base::RefCounted<HistoryAddPageArgs> { |
| 22 public: | 22 public: |
| 23 HistoryAddPageArgs(const GURL& arg_url, | 23 HistoryAddPageArgs(const GURL& arg_url, |
| 24 base::Time arg_time, | 24 base::Time arg_time, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // The argument here is an input value, which is the task to run on the | 113 // The argument here is an input value, which is the task to run on the |
| 114 // background thread. The callback is used to execute the portion of the task | 114 // background thread. The callback is used to execute the portion of the task |
| 115 // that executes on the main thread. | 115 // that executes on the main thread. |
| 116 typedef CancelableRequest1<HistoryService::HistoryDBTaskCallback, | 116 typedef CancelableRequest1<HistoryService::HistoryDBTaskCallback, |
| 117 scoped_refptr<HistoryDBTask> > | 117 scoped_refptr<HistoryDBTask> > |
| 118 HistoryDBTaskRequest; | 118 HistoryDBTaskRequest; |
| 119 | 119 |
| 120 } // namespace history | 120 } // namespace history |
| 121 | 121 |
| 122 #endif // CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H__ | 122 #endif // CHROME_BROWSER_HISTORY_HISTORY_MARSHALING_H__ |
| OLD | NEW |