OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/log_private/log_private_api.h" | 5 #include "chrome/browser/extensions/api/log_private/log_private_api.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/linked_ptr.h" | 13 #include "base/memory/linked_ptr.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
16 #include "chrome/browser/chrome_notification_types.h" | 16 #include "chrome/browser/chrome_notification_types.h" |
17 #include "chrome/browser/extensions/api/log_private/filter_handler.h" | 17 #include "chrome/browser/extensions/api/log_private/filter_handler.h" |
18 #include "chrome/browser/extensions/api/log_private/log_parser.h" | 18 #include "chrome/browser/extensions/api/log_private/log_parser.h" |
19 #include "chrome/browser/extensions/api/log_private/syslog_parser.h" | 19 #include "chrome/browser/extensions/api/log_private/syslog_parser.h" |
20 #include "chrome/browser/feedback/system_logs/scrubbed_system_logs_fetcher.h" | 20 #include "chrome/browser/feedback/system_logs/scrubbed_system_logs_fetcher.h" |
21 #include "chrome/browser/io_thread.h" | 21 #include "chrome/browser/io_thread.h" |
22 #include "chrome/browser/net/chrome_net_log.h" | 22 #include "chrome/browser/net/chrome_net_log.h" |
23 #include "chrome/common/extensions/api/log_private.h" | 23 #include "chrome/common/extensions/api/log_private.h" |
24 #include "content/public/browser/notification_details.h" | 24 #include "content/public/browser/notification_details.h" |
25 #include "content/public/browser/notification_source.h" | 25 #include "content/public/browser/notification_source.h" |
26 #include "extensions/browser/event_router.h" | 26 #include "extensions/browser/event_router.h" |
27 #include "extensions/browser/extension_function.h" | 27 #include "extensions/browser/extension_function.h" |
| 28 #include "extensions/browser/extension_system.h" |
28 | 29 |
29 using content::BrowserThread; | 30 using content::BrowserThread; |
30 | 31 |
31 namespace events { | 32 namespace events { |
32 const char kOnAddNetInternalsEntries[] = "logPrivate.onAddNetInternalsEntries"; | 33 const char kOnAddNetInternalsEntries[] = "logPrivate.onAddNetInternalsEntries"; |
33 } // namespace events | 34 } // namespace events |
34 | 35 |
35 namespace extensions { | 36 namespace extensions { |
36 namespace { | 37 namespace { |
37 | 38 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 LogPrivateStopNetInternalsWatchFunction:: | 232 LogPrivateStopNetInternalsWatchFunction:: |
232 ~LogPrivateStopNetInternalsWatchFunction() { | 233 ~LogPrivateStopNetInternalsWatchFunction() { |
233 } | 234 } |
234 | 235 |
235 bool LogPrivateStopNetInternalsWatchFunction::RunImpl() { | 236 bool LogPrivateStopNetInternalsWatchFunction::RunImpl() { |
236 LogPrivateAPI::Get(GetProfile())->StopNetInternalsWatch(extension_id()); | 237 LogPrivateAPI::Get(GetProfile())->StopNetInternalsWatch(extension_id()); |
237 return true; | 238 return true; |
238 } | 239 } |
239 | 240 |
240 } // namespace extensions | 241 } // namespace extensions |
OLD | NEW |