OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ui/webui/browsing_history_handler.h" | 5 #include "chrome/browser/ui/webui/browsing_history_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "components/browsing_data_ui/history_notice_utils.h" | 41 #include "components/browsing_data_ui/history_notice_utils.h" |
42 #include "components/favicon/core/fallback_icon_service.h" | 42 #include "components/favicon/core/fallback_icon_service.h" |
43 #include "components/favicon/core/fallback_url_util.h" | 43 #include "components/favicon/core/fallback_url_util.h" |
44 #include "components/favicon/core/large_icon_service.h" | 44 #include "components/favicon/core/large_icon_service.h" |
45 #include "components/history/core/browser/history_service.h" | 45 #include "components/history/core/browser/history_service.h" |
46 #include "components/history/core/browser/history_types.h" | 46 #include "components/history/core/browser/history_types.h" |
47 #include "components/history/core/browser/web_history_service.h" | 47 #include "components/history/core/browser/web_history_service.h" |
48 #include "components/keyed_service/core/service_access_type.h" | 48 #include "components/keyed_service/core/service_access_type.h" |
49 #include "components/prefs/pref_service.h" | 49 #include "components/prefs/pref_service.h" |
50 #include "components/query_parser/snippet.h" | 50 #include "components/query_parser/snippet.h" |
| 51 #include "components/strings/grit/components_strings.h" |
51 #include "components/sync/device_info/device_info.h" | 52 #include "components/sync/device_info/device_info.h" |
52 #include "components/sync/device_info/device_info_tracker.h" | 53 #include "components/sync/device_info/device_info_tracker.h" |
53 #include "components/sync/driver/sync_service_observer.h" | 54 #include "components/sync/driver/sync_service_observer.h" |
54 #include "components/sync/protocol/history_delete_directive_specifics.pb.h" | 55 #include "components/sync/protocol/history_delete_directive_specifics.pb.h" |
55 #include "components/sync/protocol/sync_enums.pb.h" | 56 #include "components/sync/protocol/sync_enums.pb.h" |
56 #include "components/url_formatter/url_formatter.h" | 57 #include "components/url_formatter/url_formatter.h" |
57 #include "content/public/browser/url_data_source.h" | 58 #include "content/public/browser/url_data_source.h" |
58 #include "content/public/browser/web_ui.h" | 59 #include "content/public/browser/web_ui.h" |
59 #include "grit/components_strings.h" | |
60 #include "ui/base/l10n/l10n_util.h" | 60 #include "ui/base/l10n/l10n_util.h" |
61 #include "ui/base/l10n/time_format.h" | 61 #include "ui/base/l10n/time_format.h" |
62 | 62 |
63 #if defined(ENABLE_EXTENSIONS) | 63 #if defined(ENABLE_EXTENSIONS) |
64 #include "chrome/browser/extensions/activity_log/activity_log.h" | 64 #include "chrome/browser/extensions/activity_log/activity_log.h" |
65 #endif | 65 #endif |
66 | 66 |
67 #if defined(ENABLE_SUPERVISED_USERS) | 67 #if defined(ENABLE_SUPERVISED_USERS) |
68 #include "chrome/browser/supervised_user/supervised_user_navigation_observer.h" | 68 #include "chrome/browser/supervised_user/supervised_user_navigation_observer.h" |
69 #include "chrome/browser/supervised_user/supervised_user_service.h" | 69 #include "chrome/browser/supervised_user/supervised_user_service.h" |
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 bool expired, | 986 bool expired, |
987 const history::URLRows& deleted_rows, | 987 const history::URLRows& deleted_rows, |
988 const std::set<GURL>& favicon_urls) { | 988 const std::set<GURL>& favicon_urls) { |
989 if (all_history || DeletionsDiffer(deleted_rows, urls_to_be_deleted_)) | 989 if (all_history || DeletionsDiffer(deleted_rows, urls_to_be_deleted_)) |
990 web_ui()->CallJavascriptFunctionUnsafe("historyDeleted"); | 990 web_ui()->CallJavascriptFunctionUnsafe("historyDeleted"); |
991 } | 991 } |
992 | 992 |
993 void BrowsingHistoryHandler::OnWebHistoryDeleted() { | 993 void BrowsingHistoryHandler::OnWebHistoryDeleted() { |
994 web_ui()->CallJavascriptFunctionUnsafe("historyDeleted"); | 994 web_ui()->CallJavascriptFunctionUnsafe("historyDeleted"); |
995 } | 995 } |
OLD | NEW |