| 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 "components/visitedlink/browser/visitedlink_event_listener.h" | 5 #include "components/visitedlink/browser/visitedlink_event_listener.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "components/visitedlink/browser/visitedlink_delegate.h" | 8 #include "components/visitedlink/browser/visitedlink_delegate.h" |
| 9 #include "components/visitedlink/common/visitedlink.mojom.h" | 9 #include "components/visitedlink/common/visitedlink.mojom.h" |
| 10 #include "content/public/browser/notification_service.h" | 10 #include "content/public/browser/notification_service.h" |
| 11 #include "content/public/browser/notification_types.h" | 11 #include "content/public/browser/notification_types.h" |
| 12 #include "content/public/browser/render_process_host.h" | 12 #include "content/public/browser/render_process_host.h" |
| 13 #include "content/public/browser/render_widget_host.h" | 13 #include "content/public/browser/render_widget_host.h" |
| 14 #include "services/shell/public/cpp/interface_provider.h" | 14 #include "services/service_manager/public/cpp/interface_provider.h" |
| 15 | 15 |
| 16 using base::Time; | 16 using base::Time; |
| 17 using base::TimeDelta; | 17 using base::TimeDelta; |
| 18 using content::RenderWidgetHost; | 18 using content::RenderWidgetHost; |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // The amount of time we wait to accumulate visited link additions. | 22 // The amount of time we wait to accumulate visited link additions. |
| 23 constexpr int kCommitIntervalMs = 100; | 23 constexpr int kCommitIntervalMs = 100; |
| 24 | 24 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 updaters_[child_id]->Update(); | 226 updaters_[child_id]->Update(); |
| 227 break; | 227 break; |
| 228 } | 228 } |
| 229 default: | 229 default: |
| 230 NOTREACHED(); | 230 NOTREACHED(); |
| 231 break; | 231 break; |
| 232 } | 232 } |
| 233 } | 233 } |
| 234 | 234 |
| 235 } // namespace visitedlink | 235 } // namespace visitedlink |
| OLD | NEW |