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 "content/renderer/manifest/manifest_manager.h" | 5 #include "content/renderer/manifest/manifest_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/strings/nullable_string16.h" | 8 #include "base/strings/nullable_string16.h" |
9 #include "content/common/manifest_manager_messages.h" | 9 #include "content/common/manifest_manager_messages.h" |
10 #include "content/public/renderer/render_frame.h" | 10 #include "content/public/renderer/render_frame.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 199 |
200 std::list<GetManifestCallback> callbacks; | 200 std::list<GetManifestCallback> callbacks; |
201 callbacks.swap(pending_callbacks_); | 201 callbacks.swap(pending_callbacks_); |
202 | 202 |
203 for (std::list<GetManifestCallback>::const_iterator it = callbacks.begin(); | 203 for (std::list<GetManifestCallback>::const_iterator it = callbacks.begin(); |
204 it != callbacks.end(); ++it) { | 204 it != callbacks.end(); ++it) { |
205 it->Run(manifest_, manifest_debug_info_); | 205 it->Run(manifest_, manifest_debug_info_); |
206 } | 206 } |
207 } | 207 } |
208 | 208 |
| 209 void ManifestManager::OnDestruct() { |
| 210 delete this; |
| 211 } |
| 212 |
209 } // namespace content | 213 } // namespace content |
OLD | NEW |