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/app_window.h" | |
9 #include "apps/app_window_registry.h" | |
10 #include "apps/saved_files_service.h" | 8 #include "apps/saved_files_service.h" |
11 #include "base/base64.h" | 9 #include "base/base64.h" |
12 #include "base/bind.h" | 10 #include "base/bind.h" |
13 #include "base/command_line.h" | 11 #include "base/command_line.h" |
14 #include "base/files/file_enumerator.h" | 12 #include "base/files/file_enumerator.h" |
15 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
16 #include "base/i18n/file_util_icu.h" | 14 #include "base/i18n/file_util_icu.h" |
17 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
18 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
(...skipping 21 matching lines...) Expand all Loading... |
41 #include "chrome/common/extensions/manifest_url_handler.h" | 39 #include "chrome/common/extensions/manifest_url_handler.h" |
42 #include "chrome/common/url_constants.h" | 40 #include "chrome/common/url_constants.h" |
43 #include "chrome/grit/generated_resources.h" | 41 #include "chrome/grit/generated_resources.h" |
44 #include "content/public/browser/browser_thread.h" | 42 #include "content/public/browser/browser_thread.h" |
45 #include "content/public/browser/notification_service.h" | 43 #include "content/public/browser/notification_service.h" |
46 #include "content/public/browser/render_process_host.h" | 44 #include "content/public/browser/render_process_host.h" |
47 #include "content/public/browser/render_view_host.h" | 45 #include "content/public/browser/render_view_host.h" |
48 #include "content/public/browser/site_instance.h" | 46 #include "content/public/browser/site_instance.h" |
49 #include "content/public/browser/storage_partition.h" | 47 #include "content/public/browser/storage_partition.h" |
50 #include "content/public/browser/web_contents.h" | 48 #include "content/public/browser/web_contents.h" |
| 49 #include "extensions/browser/app_window/app_window.h" |
| 50 #include "extensions/browser/app_window/app_window_registry.h" |
51 #include "extensions/browser/extension_error.h" | 51 #include "extensions/browser/extension_error.h" |
52 #include "extensions/browser/extension_prefs.h" | 52 #include "extensions/browser/extension_prefs.h" |
53 #include "extensions/browser/extension_registry.h" | 53 #include "extensions/browser/extension_registry.h" |
54 #include "extensions/browser/extension_system.h" | 54 #include "extensions/browser/extension_system.h" |
55 #include "extensions/browser/management_policy.h" | 55 #include "extensions/browser/management_policy.h" |
56 #include "extensions/browser/notification_types.h" | 56 #include "extensions/browser/notification_types.h" |
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" |
(...skipping 10 matching lines...) Expand all Loading... |
71 #include "ui/base/l10n/l10n_util.h" | 71 #include "ui/base/l10n/l10n_util.h" |
72 #include "ui/base/resource/resource_bundle.h" | 72 #include "ui/base/resource/resource_bundle.h" |
73 #include "ui/base/webui/web_ui_util.h" | 73 #include "ui/base/webui/web_ui_util.h" |
74 #include "webkit/browser/fileapi/external_mount_points.h" | 74 #include "webkit/browser/fileapi/external_mount_points.h" |
75 #include "webkit/browser/fileapi/file_system_context.h" | 75 #include "webkit/browser/fileapi/file_system_context.h" |
76 #include "webkit/browser/fileapi/file_system_operation.h" | 76 #include "webkit/browser/fileapi/file_system_operation.h" |
77 #include "webkit/browser/fileapi/file_system_operation_runner.h" | 77 #include "webkit/browser/fileapi/file_system_operation_runner.h" |
78 #include "webkit/browser/fileapi/isolated_context.h" | 78 #include "webkit/browser/fileapi/isolated_context.h" |
79 #include "webkit/common/blob/shareable_file_reference.h" | 79 #include "webkit/common/blob/shareable_file_reference.h" |
80 | 80 |
81 using apps::AppWindow; | |
82 using apps::AppWindowRegistry; | |
83 using content::RenderViewHost; | 81 using content::RenderViewHost; |
84 | 82 |
85 namespace extensions { | 83 namespace extensions { |
86 | 84 |
87 namespace developer_private = api::developer_private; | 85 namespace developer_private = api::developer_private; |
88 | 86 |
89 namespace { | 87 namespace { |
90 | 88 |
91 const char kUnpackedAppsFolder[] = "apps_target"; | 89 const char kUnpackedAppsFolder[] = "apps_target"; |
92 | 90 |
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1396 } | 1394 } |
1397 | 1395 |
1398 error_ui_util::HandleOpenDevTools(dict); | 1396 error_ui_util::HandleOpenDevTools(dict); |
1399 | 1397 |
1400 return true; | 1398 return true; |
1401 } | 1399 } |
1402 | 1400 |
1403 } // namespace api | 1401 } // namespace api |
1404 | 1402 |
1405 } // namespace extensions | 1403 } // namespace extensions |
OLD | NEW |