| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/provided_file_systems_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/provided_file_systems_ui.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/files/file.h" | 11 #include "base/files/file.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/chromeos/file_system_provider/file_system_provider_serv
ice.h" |
| 16 #include "chrome/browser/chromeos/file_system_provider/file_system_provider_serv
ice_factory.h" |
| 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 17 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
| 16 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 18 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
| 17 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" | 19 #include "chrome/browser/chromeos/file_system_provider/request_manager.h" |
| 18 #include "chrome/browser/chromeos/file_system_provider/service.h" | |
| 19 #include "chrome/browser/chromeos/file_system_provider/service_factory.h" | |
| 20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/common/url_constants.h" | 21 #include "chrome/common/url_constants.h" |
| 22 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
| 23 #include "content/public/browser/web_ui.h" | 23 #include "content/public/browser/web_ui.h" |
| 24 #include "content/public/browser/web_ui_data_source.h" | 24 #include "content/public/browser/web_ui_data_source.h" |
| 25 #include "content/public/browser/web_ui_message_handler.h" | 25 #include "content/public/browser/web_ui_message_handler.h" |
| 26 #include "grit/browser_resources.h" | 26 #include "grit/browser_resources.h" |
| 27 | 27 |
| 28 using content::BrowserThread; | 28 using content::BrowserThread; |
| 29 | 29 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 IDR_PROVIDED_FILE_SYSTEMS_CSS); | 355 IDR_PROVIDED_FILE_SYSTEMS_CSS); |
| 356 source->AddResourcePath("provided_file_systems.js", | 356 source->AddResourcePath("provided_file_systems.js", |
| 357 IDR_PROVIDED_FILE_SYSTEMS_JS); | 357 IDR_PROVIDED_FILE_SYSTEMS_JS); |
| 358 source->SetDefaultResource(IDR_PROVIDED_FILE_SYSTEMS_HTML); | 358 source->SetDefaultResource(IDR_PROVIDED_FILE_SYSTEMS_HTML); |
| 359 | 359 |
| 360 Profile* profile = Profile::FromWebUI(web_ui); | 360 Profile* profile = Profile::FromWebUI(web_ui); |
| 361 content::WebUIDataSource::Add(profile, source); | 361 content::WebUIDataSource::Add(profile, source); |
| 362 } | 362 } |
| 363 | 363 |
| 364 } // namespace chromeos | 364 } // namespace chromeos |
| OLD | NEW |