| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/sessions/content/content_serialized_navigation_driver.h" | 5 #include "components/sessions/content/content_serialized_navigation_driver.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "components/sessions/core/serialized_navigation_entry.h" | 9 #include "components/sessions/core/serialized_navigation_entry.h" |
| 10 #include "content/public/common/page_state.h" | 10 #include "content/public/common/page_state.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 DCHECK(!extended_info_handler_map_.count(key)); | 155 DCHECK(!extended_info_handler_map_.count(key)); |
| 156 DCHECK(handler.get()); | 156 DCHECK(handler.get()); |
| 157 extended_info_handler_map_[key] = std::move(handler); | 157 extended_info_handler_map_[key] = std::move(handler); |
| 158 } | 158 } |
| 159 | 159 |
| 160 const ContentSerializedNavigationDriver::ExtendedInfoHandlerMap& | 160 const ContentSerializedNavigationDriver::ExtendedInfoHandlerMap& |
| 161 ContentSerializedNavigationDriver::GetAllExtendedInfoHandlers() const { | 161 ContentSerializedNavigationDriver::GetAllExtendedInfoHandlers() const { |
| 162 return extended_info_handler_map_; | 162 return extended_info_handler_map_; |
| 163 } | 163 } |
| 164 | 164 |
| 165 void ContentSerializedNavigationDriver:: |
| 166 RemoveAllExtendedInfoHandlersForTesting() { |
| 167 extended_info_handler_map_.clear(); |
| 168 } |
| 169 |
| 165 } // namespace sessions | 170 } // namespace sessions |
| OLD | NEW |