| 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 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 return; | 1289 return; |
| 1290 } | 1290 } |
| 1291 load_completed_callback_ = closure; | 1291 load_completed_callback_ = closure; |
| 1292 } | 1292 } |
| 1293 | 1293 |
| 1294 bool DevToolsWindow::ForwardKeyboardEvent( | 1294 bool DevToolsWindow::ForwardKeyboardEvent( |
| 1295 const content::NativeWebKeyboardEvent& event) { | 1295 const content::NativeWebKeyboardEvent& event) { |
| 1296 return event_forwarder_->ForwardEvent(event); | 1296 return event_forwarder_->ForwardEvent(event); |
| 1297 } | 1297 } |
| 1298 | 1298 |
| 1299 bool DevToolsWindow::ReloadInspectedWebContents(bool ignore_cache) { | 1299 bool DevToolsWindow::ReloadInspectedWebContents(bool bypass_cache) { |
| 1300 // Only route reload via front-end if the agent is attached. | 1300 // Only route reload via front-end if the agent is attached. |
| 1301 WebContents* wc = GetInspectedWebContents(); | 1301 WebContents* wc = GetInspectedWebContents(); |
| 1302 if (!wc || wc->GetCrashedStatus() != base::TERMINATION_STATUS_STILL_RUNNING) | 1302 if (!wc || wc->GetCrashedStatus() != base::TERMINATION_STATUS_STILL_RUNNING) |
| 1303 return false; | 1303 return false; |
| 1304 base::FundamentalValue ignore_cache_value(ignore_cache); | 1304 base::FundamentalValue bypass_cache_value(bypass_cache); |
| 1305 bindings_->CallClientFunction("DevToolsAPI.reloadInspectedPage", | 1305 bindings_->CallClientFunction("DevToolsAPI.reloadInspectedPage", |
| 1306 &ignore_cache_value, nullptr, nullptr); | 1306 &bypass_cache_value, nullptr, nullptr); |
| 1307 return true; | 1307 return true; |
| 1308 } | 1308 } |
| OLD | NEW |