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/extensions/api/downloads/downloads_api.h" | 5 #include "chrome/browser/extensions/api/downloads/downloads_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> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/json/json_writer.h" | 17 #include "base/json/json_writer.h" |
18 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
21 #include "base/stl_util.h" | 21 #include "base/stl_util.h" |
22 #include "base/string16.h" | 22 #include "base/string16.h" |
23 #include "base/string_split.h" | |
24 #include "base/string_util.h" | 23 #include "base/string_util.h" |
25 #include "base/stringprintf.h" | 24 #include "base/stringprintf.h" |
| 25 #include "base/strings/string_split.h" |
26 #include "base/values.h" | 26 #include "base/values.h" |
27 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
28 #include "chrome/browser/download/download_danger_prompt.h" | 28 #include "chrome/browser/download/download_danger_prompt.h" |
29 #include "chrome/browser/download/download_file_icon_extractor.h" | 29 #include "chrome/browser/download/download_file_icon_extractor.h" |
30 #include "chrome/browser/download/download_query.h" | 30 #include "chrome/browser/download/download_query.h" |
31 #include "chrome/browser/download/download_service.h" | 31 #include "chrome/browser/download/download_service.h" |
32 #include "chrome/browser/download/download_service_factory.h" | 32 #include "chrome/browser/download/download_service_factory.h" |
33 #include "chrome/browser/download/download_util.h" | 33 #include "chrome/browser/download/download_util.h" |
34 #include "chrome/browser/extensions/event_names.h" | 34 #include "chrome/browser/extensions/event_names.h" |
35 #include "chrome/browser/extensions/event_router.h" | 35 #include "chrome/browser/extensions/event_router.h" |
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 if (profile_->HasOffTheRecordProfile() && | 1147 if (profile_->HasOffTheRecordProfile() && |
1148 !profile_->IsOffTheRecord()) { | 1148 !profile_->IsOffTheRecord()) { |
1149 DispatchEventInternal( | 1149 DispatchEventInternal( |
1150 profile_->GetOffTheRecordProfile(), | 1150 profile_->GetOffTheRecordProfile(), |
1151 event_name, | 1151 event_name, |
1152 json_args, | 1152 json_args, |
1153 scoped_ptr<base::ListValue>(args->DeepCopy())); | 1153 scoped_ptr<base::ListValue>(args->DeepCopy())); |
1154 } | 1154 } |
1155 DispatchEventInternal(profile_, event_name, json_args, args.Pass()); | 1155 DispatchEventInternal(profile_, event_name, json_args, args.Pass()); |
1156 } | 1156 } |
OLD | NEW |