Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: chrome/browser/devtools/devtools_window.cc

Issue 1867523002: Rename ignore_cache and ignoreCache to bypass* unless it affects API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_window.h ('k') | chrome/common/extensions/api/devtools/inspected_window.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698