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/extensions/extension_view_host.h" | 5 #include "chrome/browser/extensions/extension_view_host.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
11 #include "chrome/browser/extensions/extension_view.h" | 11 #include "chrome/browser/extensions/extension_view.h" |
12 #include "chrome/browser/extensions/window_controller.h" | 12 #include "chrome/browser/extensions/window_controller.h" |
13 #include "chrome/browser/file_select_helper.h" | 13 #include "chrome/browser/file_select_helper.h" |
14 #include "chrome/browser/platform_util.h" | 14 #include "chrome/browser/platform_util.h" |
15 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" | 15 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
17 #include "chrome/browser/ui/browser_dialogs.h" | 17 #include "chrome/browser/ui/browser_dialogs.h" |
18 #include "components/autofill/content/browser/content_autofill_driver_factory.h" | 18 #include "components/autofill/content/browser/content_autofill_driver_factory.h" |
19 #include "components/autofill/core/browser/autofill_manager.h" | 19 #include "components/autofill/core/browser/autofill_manager.h" |
20 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 20 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
21 #include "content/public/browser/notification_source.h" | 21 #include "content/public/browser/notification_source.h" |
22 #include "content/public/browser/render_view_host.h" | 22 #include "content/public/browser/render_view_host.h" |
23 #include "content/public/browser/render_widget_host.h" | 23 #include "content/public/browser/render_widget_host.h" |
24 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
25 #include "extensions/browser/extension_system.h" | 25 #include "extensions/browser/extension_system.h" |
26 #include "extensions/browser/runtime_data.h" | 26 #include "extensions/browser/runtime_data.h" |
27 #include "third_party/WebKit/public/web/WebInputEvent.h" | 27 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
28 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
29 #include "ui/events/keycodes/keyboard_codes.h" | 29 #include "ui/events/keycodes/keyboard_codes.h" |
30 | 30 |
31 using content::NativeWebKeyboardEvent; | 31 using content::NativeWebKeyboardEvent; |
32 using content::OpenURLParams; | 32 using content::OpenURLParams; |
33 using content::RenderViewHost; | 33 using content::RenderViewHost; |
34 using content::WebContents; | 34 using content::WebContents; |
35 using content::WebContentsObserver; | 35 using content::WebContentsObserver; |
36 using web_modal::WebContentsModalDialogManager; | 36 using web_modal::WebContentsModalDialogManager; |
37 | 37 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 const content::NotificationSource& source, | 306 const content::NotificationSource& source, |
307 const content::NotificationDetails& details) { | 307 const content::NotificationDetails& details) { |
308 DCHECK_EQ(type, extensions::NOTIFICATION_EXTENSION_BACKGROUND_PAGE_READY); | 308 DCHECK_EQ(type, extensions::NOTIFICATION_EXTENSION_BACKGROUND_PAGE_READY); |
309 DCHECK(ExtensionSystem::Get(browser_context()) | 309 DCHECK(ExtensionSystem::Get(browser_context()) |
310 ->runtime_data() | 310 ->runtime_data() |
311 ->IsBackgroundPageReady(extension())); | 311 ->IsBackgroundPageReady(extension())); |
312 LoadInitialURL(); | 312 LoadInitialURL(); |
313 } | 313 } |
314 | 314 |
315 } // namespace extensions | 315 } // namespace extensions |
OLD | NEW |