| 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 "chrome/browser/automation/automation_provider_observers.h" | 5 #include "chrome/browser/automation/automation_provider_observers.h" |
| 6 | 6 |
| 7 #include <deque> | 7 #include <deque> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/json/json_value_serializer.h" | |
| 17 #include "base/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
| 18 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
| 19 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
| 20 #include "base/string_number_conversions.h" | 19 #include "base/string_number_conversions.h" |
| 21 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 22 #include "base/stringprintf.h" | 21 #include "base/stringprintf.h" |
| 23 #include "base/threading/thread_restrictions.h" | 22 #include "base/threading/thread_restrictions.h" |
| 24 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
| 25 #include "base/values.h" | 24 #include "base/values.h" |
| 26 #include "chrome/app/chrome_command_ids.h" | 25 #include "chrome/app/chrome_command_ids.h" |
| (...skipping 3167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3194 } | 3193 } |
| 3195 | 3194 |
| 3196 ExtensionHost* host = content::Details<ExtensionHost>(details).ptr(); | 3195 ExtensionHost* host = content::Details<ExtensionHost>(details).ptr(); |
| 3197 if (host->extension_id() == extension_id_ && | 3196 if (host->extension_id() == extension_id_ && |
| 3198 host->extension_host_type() == chrome::VIEW_TYPE_EXTENSION_POPUP) { | 3197 host->extension_host_type() == chrome::VIEW_TYPE_EXTENSION_POPUP) { |
| 3199 AutomationJSONReply(automation_, reply_message_.release()) | 3198 AutomationJSONReply(automation_, reply_message_.release()) |
| 3200 .SendSuccess(NULL); | 3199 .SendSuccess(NULL); |
| 3201 delete this; | 3200 delete this; |
| 3202 } | 3201 } |
| 3203 } | 3202 } |
| OLD | NEW |