| 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/devtools/devtools_ui_bindings.h" | 5 #include "chrome/browser/devtools/devtools_ui_bindings.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "chrome/browser/ui/browser_window.h" | 34 #include "chrome/browser/ui/browser_window.h" |
| 35 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 35 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 36 #include "chrome/common/chrome_switches.h" | 36 #include "chrome/common/chrome_switches.h" |
| 37 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" | 37 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" |
| 38 #include "chrome/common/pref_names.h" | 38 #include "chrome/common/pref_names.h" |
| 39 #include "chrome/common/url_constants.h" | 39 #include "chrome/common/url_constants.h" |
| 40 #include "chrome/grit/generated_resources.h" | 40 #include "chrome/grit/generated_resources.h" |
| 41 #include "components/infobars/core/confirm_infobar_delegate.h" | 41 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 42 #include "components/infobars/core/infobar.h" | 42 #include "components/infobars/core/infobar.h" |
| 43 #include "components/prefs/scoped_user_pref_update.h" | 43 #include "components/prefs/scoped_user_pref_update.h" |
| 44 #include "components/syncable_prefs/pref_service_syncable.h" | 44 #include "components/sync_preferences/pref_service_syncable.h" |
| 45 #include "components/zoom/page_zoom.h" | 45 #include "components/zoom/page_zoom.h" |
| 46 #include "content/public/browser/child_process_security_policy.h" | 46 #include "content/public/browser/child_process_security_policy.h" |
| 47 #include "content/public/browser/devtools_external_agent_proxy.h" | 47 #include "content/public/browser/devtools_external_agent_proxy.h" |
| 48 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" | 48 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" |
| 49 #include "content/public/browser/navigation_controller.h" | 49 #include "content/public/browser/navigation_controller.h" |
| 50 #include "content/public/browser/navigation_entry.h" | 50 #include "content/public/browser/navigation_entry.h" |
| 51 #include "content/public/browser/notification_source.h" | 51 #include "content/public/browser/notification_source.h" |
| 52 #include "content/public/browser/reload_type.h" | 52 #include "content/public/browser/reload_type.h" |
| 53 #include "content/public/browser/render_frame_host.h" | 53 #include "content/public/browser/render_frame_host.h" |
| 54 #include "content/public/browser/render_process_host.h" | 54 #include "content/public/browser/render_process_host.h" |
| (...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 void DevToolsUIBindings::FrontendLoaded() { | 1177 void DevToolsUIBindings::FrontendLoaded() { |
| 1178 if (frontend_loaded_) | 1178 if (frontend_loaded_) |
| 1179 return; | 1179 return; |
| 1180 frontend_loaded_ = true; | 1180 frontend_loaded_ = true; |
| 1181 | 1181 |
| 1182 // Call delegate first - it seeds importants bit of information. | 1182 // Call delegate first - it seeds importants bit of information. |
| 1183 delegate_->OnLoadCompleted(); | 1183 delegate_->OnLoadCompleted(); |
| 1184 | 1184 |
| 1185 AddDevToolsExtensionsToClient(); | 1185 AddDevToolsExtensionsToClient(); |
| 1186 } | 1186 } |
| OLD | NEW |