| 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 "extensions/renderer/request_sender.h" | 5 #include "extensions/renderer/request_sender.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
| 7 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 8 #include "base/timer/elapsed_timer.h" | 9 #include "base/timer/elapsed_timer.h" |
| 9 #include "base/values.h" | 10 #include "base/values.h" |
| 10 #include "content/public/renderer/render_frame.h" | 11 #include "content/public/renderer/render_frame.h" |
| 11 #include "extensions/common/constants.h" | 12 #include "extensions/common/constants.h" |
| 12 #include "extensions/common/extension_messages.h" | 13 #include "extensions/common/extension_messages.h" |
| 13 #include "extensions/renderer/script_context.h" | 14 #include "extensions/renderer/script_context.h" |
| 14 #include "third_party/WebKit/public/web/WebDocument.h" | 15 #include "third_party/WebKit/public/web/WebDocument.h" |
| 15 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 16 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 16 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" | 17 #include "third_party/WebKit/public/web/WebScopedUserGesture.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 for (PendingRequestMap::iterator it = pending_requests_.begin(); | 150 for (PendingRequestMap::iterator it = pending_requests_.begin(); |
| 150 it != pending_requests_.end();) { | 151 it != pending_requests_.end();) { |
| 151 if (it->second->source == source) | 152 if (it->second->source == source) |
| 152 pending_requests_.erase(it++); | 153 pending_requests_.erase(it++); |
| 153 else | 154 else |
| 154 ++it; | 155 ++it; |
| 155 } | 156 } |
| 156 } | 157 } |
| 157 | 158 |
| 158 } // namespace extensions | 159 } // namespace extensions |
| OLD | NEW |