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/developer_private/developer_private_api.
h" | 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api.
h" |
6 | 6 |
7 #include "apps/app_load_service.h" | 7 #include "apps/app_load_service.h" |
8 #include "apps/saved_files_service.h" | 8 #include "apps/saved_files_service.h" |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 #include "extensions/browser/view_type_utils.h" | 57 #include "extensions/browser/view_type_utils.h" |
58 #include "extensions/common/constants.h" | 58 #include "extensions/common/constants.h" |
59 #include "extensions/common/extension_resource.h" | 59 #include "extensions/common/extension_resource.h" |
60 #include "extensions/common/extension_set.h" | 60 #include "extensions/common/extension_set.h" |
61 #include "extensions/common/install_warning.h" | 61 #include "extensions/common/install_warning.h" |
62 #include "extensions/common/manifest.h" | 62 #include "extensions/common/manifest.h" |
63 #include "extensions/common/manifest_handlers/background_info.h" | 63 #include "extensions/common/manifest_handlers/background_info.h" |
64 #include "extensions/common/manifest_handlers/icons_handler.h" | 64 #include "extensions/common/manifest_handlers/icons_handler.h" |
65 #include "extensions/common/manifest_handlers/incognito_info.h" | 65 #include "extensions/common/manifest_handlers/incognito_info.h" |
66 #include "extensions/common/manifest_handlers/offline_enabled_info.h" | 66 #include "extensions/common/manifest_handlers/offline_enabled_info.h" |
| 67 #include "extensions/common/manifest_handlers/options_page_info.h" |
67 #include "extensions/common/permissions/permissions_data.h" | 68 #include "extensions/common/permissions/permissions_data.h" |
68 #include "extensions/common/switches.h" | 69 #include "extensions/common/switches.h" |
69 #include "extensions/grit/extensions_browser_resources.h" | 70 #include "extensions/grit/extensions_browser_resources.h" |
70 #include "net/base/net_util.h" | 71 #include "net/base/net_util.h" |
71 #include "ui/base/l10n/l10n_util.h" | 72 #include "ui/base/l10n/l10n_util.h" |
72 #include "ui/base/resource/resource_bundle.h" | 73 #include "ui/base/resource/resource_bundle.h" |
73 #include "ui/base/webui/web_ui_util.h" | 74 #include "ui/base/webui/web_ui_util.h" |
74 #include "webkit/browser/fileapi/external_mount_points.h" | 75 #include "webkit/browser/fileapi/external_mount_points.h" |
75 #include "webkit/browser/fileapi/file_system_context.h" | 76 #include "webkit/browser/fileapi/file_system_context.h" |
76 #include "webkit/browser/fileapi/file_system_operation.h" | 77 #include "webkit/browser/fileapi/file_system_operation.h" |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 info->incognito_enabled = util::IsIncognitoEnabled(item.id(), GetProfile()); | 424 info->incognito_enabled = util::IsIncognitoEnabled(item.id(), GetProfile()); |
424 info->wants_file_access = item.wants_file_access(); | 425 info->wants_file_access = item.wants_file_access(); |
425 info->allow_file_access = util::AllowFileAccess(item.id(), GetProfile()); | 426 info->allow_file_access = util::AllowFileAccess(item.id(), GetProfile()); |
426 info->allow_reload = Manifest::IsUnpackedLocation(item.location()); | 427 info->allow_reload = Manifest::IsUnpackedLocation(item.location()); |
427 info->is_unpacked = Manifest::IsUnpackedLocation(item.location()); | 428 info->is_unpacked = Manifest::IsUnpackedLocation(item.location()); |
428 info->terminated = registry->terminated_extensions().Contains(item.id()); | 429 info->terminated = registry->terminated_extensions().Contains(item.id()); |
429 info->allow_incognito = item.can_be_incognito_enabled(); | 430 info->allow_incognito = item.can_be_incognito_enabled(); |
430 | 431 |
431 info->homepage_url.reset(new std::string( | 432 info->homepage_url.reset(new std::string( |
432 ManifestURL::GetHomepageURL(&item).spec())); | 433 ManifestURL::GetHomepageURL(&item).spec())); |
433 if (!ManifestURL::GetOptionsPage(&item).is_empty()) { | 434 if (!OptionsPageInfo::GetOptionsPage(&item).is_empty()) { |
434 info->options_url.reset( | 435 info->options_url.reset( |
435 new std::string(ManifestURL::GetOptionsPage(&item).spec())); | 436 new std::string(OptionsPageInfo::GetOptionsPage(&item).spec())); |
436 } | 437 } |
437 | 438 |
438 if (!ManifestURL::GetUpdateURL(&item).is_empty()) { | 439 if (!ManifestURL::GetUpdateURL(&item).is_empty()) { |
439 info->update_url.reset( | 440 info->update_url.reset( |
440 new std::string(ManifestURL::GetUpdateURL(&item).spec())); | 441 new std::string(ManifestURL::GetUpdateURL(&item).spec())); |
441 } | 442 } |
442 | 443 |
443 if (item.is_app()) { | 444 if (item.is_app()) { |
444 info->app_launch_url.reset( | 445 info->app_launch_url.reset( |
445 new std::string(AppLaunchInfo::GetFullLaunchURL(&item).spec())); | 446 new std::string(AppLaunchInfo::GetFullLaunchURL(&item).spec())); |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1394 } | 1395 } |
1395 | 1396 |
1396 error_ui_util::HandleOpenDevTools(dict); | 1397 error_ui_util::HandleOpenDevTools(dict); |
1397 | 1398 |
1398 return true; | 1399 return true; |
1399 } | 1400 } |
1400 | 1401 |
1401 } // namespace api | 1402 } // namespace api |
1402 | 1403 |
1403 } // namespace extensions | 1404 } // namespace extensions |
OLD | NEW |