OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ios/chrome/browser/ui/webui/history/browsing_history_handler.h" | 5 #include "ios/chrome/browser/ui/webui/history/browsing_history_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 35 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
36 #include "ios/chrome/browser/chrome_url_constants.h" | 36 #include "ios/chrome/browser/chrome_url_constants.h" |
37 #include "ios/chrome/browser/favicon/favicon_service_factory.h" | 37 #include "ios/chrome/browser/favicon/favicon_service_factory.h" |
38 #include "ios/chrome/browser/history/history_service_factory.h" | 38 #include "ios/chrome/browser/history/history_service_factory.h" |
39 #include "ios/chrome/browser/history/history_utils.h" | 39 #include "ios/chrome/browser/history/history_utils.h" |
40 #include "ios/chrome/browser/history/top_sites_factory.h" | 40 #include "ios/chrome/browser/history/top_sites_factory.h" |
41 #include "ios/chrome/browser/history/web_history_service_factory.h" | 41 #include "ios/chrome/browser/history/web_history_service_factory.h" |
42 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" | 42 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" |
43 #include "ios/chrome/browser/ui/show_privacy_settings_util.h" | 43 #include "ios/chrome/browser/ui/show_privacy_settings_util.h" |
44 #include "ios/chrome/browser/ui/webui/history/favicon_source.h" | 44 #include "ios/chrome/browser/ui/webui/history/favicon_source.h" |
45 #include "ios/public/provider/web/web_ui_ios.h" | |
46 #include "ios/web/public/url_data_source_ios.h" | 45 #include "ios/web/public/url_data_source_ios.h" |
| 46 #include "ios/web/public/webui/web_ui_ios.h" |
47 #include "sync/protocol/history_delete_directive_specifics.pb.h" | 47 #include "sync/protocol/history_delete_directive_specifics.pb.h" |
48 #include "sync/protocol/sync_enums.pb.h" | 48 #include "sync/protocol/sync_enums.pb.h" |
49 #include "ui/base/l10n/l10n_util.h" | 49 #include "ui/base/l10n/l10n_util.h" |
50 #include "ui/base/l10n/time_format.h" | 50 #include "ui/base/l10n/time_format.h" |
51 | 51 |
52 // The amount of time to wait for a response from the WebHistoryService. | 52 // The amount of time to wait for a response from the WebHistoryService. |
53 static const int kWebHistoryTimeoutSeconds = 3; | 53 static const int kWebHistoryTimeoutSeconds = 3; |
54 | 54 |
55 using bookmarks::BookmarkModel; | 55 using bookmarks::BookmarkModel; |
56 | 56 |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 | 839 |
840 void BrowsingHistoryHandler::OnURLsDeleted( | 840 void BrowsingHistoryHandler::OnURLsDeleted( |
841 history::HistoryService* history_service, | 841 history::HistoryService* history_service, |
842 bool all_history, | 842 bool all_history, |
843 bool expired, | 843 bool expired, |
844 const history::URLRows& deleted_rows, | 844 const history::URLRows& deleted_rows, |
845 const std::set<GURL>& favicon_urls) { | 845 const std::set<GURL>& favicon_urls) { |
846 if (all_history || DeletionsDiffer(deleted_rows, urls_to_be_deleted_)) | 846 if (all_history || DeletionsDiffer(deleted_rows, urls_to_be_deleted_)) |
847 web_ui()->CallJavascriptFunction("historyDeleted"); | 847 web_ui()->CallJavascriptFunction("historyDeleted"); |
848 } | 848 } |
OLD | NEW |