| 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/file_metadata_handl
er.h" | 5 #include "chrome/browser/ui/webui/sync_file_system_internals/file_metadata_handl
er.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/values.h" | 11 #include "base/values.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/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/sync_file_system/sync_file_system_service.h" | 14 #include "chrome/browser/sync_file_system/sync_file_system_service.h" |
| 15 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" | 15 #include "chrome/browser/sync_file_system/sync_file_system_service_factory.h" |
| 16 #include "chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_
handler.h" | 16 #include "chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_
handler.h" |
| 17 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
| 18 #include "content/public/browser/web_ui_data_source.h" | 18 #include "content/public/browser/web_ui_data_source.h" |
| 19 #include "extensions/common/extension.h" | 19 #include "extensions/common/extension.h" |
| 20 #include "grit/sync_file_system_internals_resources.h" | |
| 21 | 20 |
| 22 using sync_file_system::RemoteFileSyncService; | 21 using sync_file_system::RemoteFileSyncService; |
| 23 using sync_file_system::SyncFileSystemServiceFactory; | 22 using sync_file_system::SyncFileSystemServiceFactory; |
| 24 using sync_file_system::SyncServiceState; | 23 using sync_file_system::SyncServiceState; |
| 25 | 24 |
| 26 namespace syncfs_internals { | 25 namespace syncfs_internals { |
| 27 | 26 |
| 28 FileMetadataHandler::FileMetadataHandler(Profile* profile) | 27 FileMetadataHandler::FileMetadataHandler(Profile* profile) |
| 29 : profile_(profile), | 28 : profile_(profile), |
| 30 weak_factory_(this) {} | 29 weak_factory_(this) {} |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 74 |
| 76 void FileMetadataHandler::DidGetExtensions(const base::ListValue& list) { | 75 void FileMetadataHandler::DidGetExtensions(const base::ListValue& list) { |
| 77 web_ui()->CallJavascriptFunction("FileMetadata.onGetExtensions", list); | 76 web_ui()->CallJavascriptFunction("FileMetadata.onGetExtensions", list); |
| 78 } | 77 } |
| 79 | 78 |
| 80 void FileMetadataHandler::DidGetFileMetadata(const base::ListValue& files) { | 79 void FileMetadataHandler::DidGetFileMetadata(const base::ListValue& files) { |
| 81 web_ui()->CallJavascriptFunction("FileMetadata.onGetFileMetadata", files); | 80 web_ui()->CallJavascriptFunction("FileMetadata.onGetFileMetadata", files); |
| 82 } | 81 } |
| 83 | 82 |
| 84 } // namespace syncfs_internals | 83 } // namespace syncfs_internals |
| OLD | NEW |