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 #include "chrome/browser/extensions/api/history/history_api.h" | 5 #include "chrome/browser/extensions/api/history/history_api.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/prefs/pref_service.h" | |
18 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
19 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
20 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
21 #include "base/task/cancelable_task_tracker.h" | 20 #include "base/task/cancelable_task_tracker.h" |
22 #include "base/thread_task_runner_handle.h" | 21 #include "base/thread_task_runner_handle.h" |
23 #include "base/time/time.h" | 22 #include "base/time/time.h" |
24 #include "base/values.h" | 23 #include "base/values.h" |
25 #include "chrome/browser/extensions/activity_log/activity_log.h" | 24 #include "chrome/browser/extensions/activity_log/activity_log.h" |
26 #include "chrome/browser/history/history_service_factory.h" | 25 #include "chrome/browser/history/history_service_factory.h" |
27 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
28 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
29 #include "chrome/common/extensions/api/history.h" | 28 #include "chrome/common/extensions/api/history.h" |
30 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
31 #include "components/history/core/browser/history_service.h" | 30 #include "components/history/core/browser/history_service.h" |
32 #include "components/history/core/browser/history_types.h" | 31 #include "components/history/core/browser/history_types.h" |
| 32 #include "components/prefs/pref_service.h" |
33 #include "extensions/browser/event_router.h" | 33 #include "extensions/browser/event_router.h" |
34 #include "extensions/browser/extension_system_provider.h" | 34 #include "extensions/browser/extension_system_provider.h" |
35 #include "extensions/browser/extensions_browser_client.h" | 35 #include "extensions/browser/extensions_browser_client.h" |
36 | 36 |
37 namespace extensions { | 37 namespace extensions { |
38 | 38 |
39 using api::history::HistoryItem; | 39 using api::history::HistoryItem; |
40 using api::history::VisitItem; | 40 using api::history::VisitItem; |
41 | 41 |
42 typedef std::vector<linked_ptr<api::history::HistoryItem> > | 42 typedef std::vector<linked_ptr<api::history::HistoryItem> > |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 } | 459 } |
460 | 460 |
461 return true; | 461 return true; |
462 } | 462 } |
463 | 463 |
464 void HistoryDeleteAllFunction::DeleteComplete() { | 464 void HistoryDeleteAllFunction::DeleteComplete() { |
465 SendAsyncResponse(); | 465 SendAsyncResponse(); |
466 } | 466 } |
467 | 467 |
468 } // namespace extensions | 468 } // namespace extensions |
OLD | NEW |