| 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/devtools/devtools_window.h" | 5 #include "chrome/browser/devtools/devtools_window.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 27 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
| 28 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" | 28 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" |
| 29 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 29 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 30 #include "chrome/browser/ui/webui/devtools_ui.h" | 30 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
| 32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
| 33 #include "chrome/common/url_constants.h" | 33 #include "chrome/common/url_constants.h" |
| 34 #include "components/app_modal/javascript_dialog_manager.h" | 34 #include "components/app_modal/javascript_dialog_manager.h" |
| 35 #include "components/pref_registry/pref_registry_syncable.h" | 35 #include "components/pref_registry/pref_registry_syncable.h" |
| 36 #include "components/prefs/scoped_user_pref_update.h" | 36 #include "components/prefs/scoped_user_pref_update.h" |
| 37 #include "components/syncable_prefs/pref_service_syncable.h" | 37 #include "components/sync_preferences/pref_service_syncable.h" |
| 38 #include "components/zoom/page_zoom.h" | 38 #include "components/zoom/page_zoom.h" |
| 39 #include "components/zoom/zoom_controller.h" | 39 #include "components/zoom/zoom_controller.h" |
| 40 #include "content/public/browser/browser_thread.h" | 40 #include "content/public/browser/browser_thread.h" |
| 41 #include "content/public/browser/devtools_agent_host.h" | 41 #include "content/public/browser/devtools_agent_host.h" |
| 42 #include "content/public/browser/native_web_keyboard_event.h" | 42 #include "content/public/browser/native_web_keyboard_event.h" |
| 43 #include "content/public/browser/navigation_controller.h" | 43 #include "content/public/browser/navigation_controller.h" |
| 44 #include "content/public/browser/navigation_entry.h" | 44 #include "content/public/browser/navigation_entry.h" |
| 45 #include "content/public/browser/render_frame_host.h" | 45 #include "content/public/browser/render_frame_host.h" |
| 46 #include "content/public/browser/render_process_host.h" | 46 #include "content/public/browser/render_process_host.h" |
| 47 #include "content/public/browser/render_view_host.h" | 47 #include "content/public/browser/render_view_host.h" |
| (...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 bool DevToolsWindow::ReloadInspectedWebContents(bool bypass_cache) { | 1380 bool DevToolsWindow::ReloadInspectedWebContents(bool bypass_cache) { |
| 1381 // Only route reload via front-end if the agent is attached. | 1381 // Only route reload via front-end if the agent is attached. |
| 1382 WebContents* wc = GetInspectedWebContents(); | 1382 WebContents* wc = GetInspectedWebContents(); |
| 1383 if (!wc || wc->GetCrashedStatus() != base::TERMINATION_STATUS_STILL_RUNNING) | 1383 if (!wc || wc->GetCrashedStatus() != base::TERMINATION_STATUS_STILL_RUNNING) |
| 1384 return false; | 1384 return false; |
| 1385 base::FundamentalValue bypass_cache_value(bypass_cache); | 1385 base::FundamentalValue bypass_cache_value(bypass_cache); |
| 1386 bindings_->CallClientFunction("DevToolsAPI.reloadInspectedPage", | 1386 bindings_->CallClientFunction("DevToolsAPI.reloadInspectedPage", |
| 1387 &bypass_cache_value, nullptr, nullptr); | 1387 &bypass_cache_value, nullptr, nullptr); |
| 1388 return true; | 1388 return true; |
| 1389 } | 1389 } |
| OLD | NEW |