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/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_handler.h" | 5 #include "chrome/browser/ui/webui/sync_file_system_internals/sync_file_system_in
ternals_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/drive/drive_notification_manager.h" | 10 #include "chrome/browser/drive/drive_notification_manager.h" |
11 #include "chrome/browser/drive/drive_notification_manager_factory.h" | 11 #include "chrome/browser/drive/drive_notification_manager_factory.h" |
12 #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api_he
lpers.h" | 12 #include "chrome/browser/extensions/api/sync_file_system/sync_file_system_api_he
lpers.h" |
13 #include "chrome/browser/google_apis/time_util.h" | |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/sync_file_system/logger.h" | 14 #include "chrome/browser/sync_file_system/logger.h" |
16 #include "chrome/browser/sync_file_system/sync_file_system_service.h" | 15 #include "chrome/browser/sync_file_system/sync_file_system_service.h" |
17 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" | 16 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" |
18 #include "chrome/browser/sync_file_system/sync_service_state.h" | 17 #include "chrome/browser/sync_file_system/sync_service_state.h" |
19 #include "chrome/common/extensions/api/sync_file_system.h" | 18 #include "chrome/common/extensions/api/sync_file_system.h" |
20 #include "content/public/browser/storage_partition.h" | 19 #include "content/public/browser/storage_partition.h" |
21 #include "content/public/browser/web_ui.h" | 20 #include "content/public/browser/web_ui.h" |
| 21 #include "google_apis/drive/time_util.h" |
22 | 22 |
23 using drive::EventLogger; | 23 using drive::EventLogger; |
24 using sync_file_system::SyncFileSystemServiceFactory; | 24 using sync_file_system::SyncFileSystemServiceFactory; |
25 using sync_file_system::SyncServiceState; | 25 using sync_file_system::SyncServiceState; |
26 | 26 |
27 namespace syncfs_internals { | 27 namespace syncfs_internals { |
28 | 28 |
29 SyncFileSystemInternalsHandler::SyncFileSystemInternalsHandler(Profile* profile) | 29 SyncFileSystemInternalsHandler::SyncFileSystemInternalsHandler(Profile* profile) |
30 : profile_(profile) { | 30 : profile_(profile) { |
31 sync_file_system::SyncFileSystemService* sync_service = | 31 sync_file_system::SyncFileSystemService* sync_service = |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 list.Append(dict); | 122 list.Append(dict); |
123 last_log_id_sent = log_entry->id; | 123 last_log_id_sent = log_entry->id; |
124 } | 124 } |
125 if (list.empty()) | 125 if (list.empty()) |
126 return; | 126 return; |
127 | 127 |
128 web_ui()->CallJavascriptFunction("SyncService.onGetLog", list); | 128 web_ui()->CallJavascriptFunction("SyncService.onGetLog", list); |
129 } | 129 } |
130 | 130 |
131 } // namespace syncfs_internals | 131 } // namespace syncfs_internals |
OLD | NEW |