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/download/download_extension_api.h" | 5 #include "chrome/browser/download/download_extension_api.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cctype> | 8 #include <cctype> |
9 #include <iterator> | 9 #include <iterator> |
10 #include <set> | 10 #include <set> |
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 void ExtensionDownloadsEventRouter::DispatchEvent( | 1111 void ExtensionDownloadsEventRouter::DispatchEvent( |
1112 const char* event_name, base::Value* arg) { | 1112 const char* event_name, base::Value* arg) { |
1113 ListValue args; | 1113 ListValue args; |
1114 args.Append(arg); | 1114 args.Append(arg); |
1115 std::string json_args; | 1115 std::string json_args; |
1116 base::JSONWriter::Write(&args, &json_args); | 1116 base::JSONWriter::Write(&args, &json_args); |
1117 profile_->GetExtensionEventRouter()->DispatchEventToRenderers( | 1117 profile_->GetExtensionEventRouter()->DispatchEventToRenderers( |
1118 event_name, | 1118 event_name, |
1119 json_args, | 1119 json_args, |
1120 profile_, | 1120 profile_, |
1121 GURL()); | 1121 GURL(), |
| 1122 extensions::EventFilteringInfo()); |
1122 } | 1123 } |
OLD | NEW |