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" |
| 11 #include "base/macros.h" |
11 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
12 #include "base/prefs/scoped_user_pref_update.h" | 13 #include "base/prefs/scoped_user_pref_update.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "base/values.h" | 15 #include "base/values.h" |
15 #include "chrome/browser/certificate_viewer.h" | 16 #include "chrome/browser/certificate_viewer.h" |
16 #include "chrome/browser/file_select_helper.h" | 17 #include "chrome/browser/file_select_helper.h" |
17 #include "chrome/browser/infobars/infobar_service.h" | 18 #include "chrome/browser/infobars/infobar_service.h" |
18 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/sessions/session_tab_helper.h" | 20 #include "chrome/browser/sessions/session_tab_helper.h" |
20 #include "chrome/browser/task_management/web_contents_tags.h" | 21 #include "chrome/browser/task_management/web_contents_tags.h" |
(...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 bool DevToolsWindow::ReloadInspectedWebContents(bool ignore_cache) { | 1282 bool DevToolsWindow::ReloadInspectedWebContents(bool ignore_cache) { |
1282 // Only route reload via front-end if the agent is attached. | 1283 // Only route reload via front-end if the agent is attached. |
1283 WebContents* wc = GetInspectedWebContents(); | 1284 WebContents* wc = GetInspectedWebContents(); |
1284 if (!wc || wc->GetCrashedStatus() != base::TERMINATION_STATUS_STILL_RUNNING) | 1285 if (!wc || wc->GetCrashedStatus() != base::TERMINATION_STATUS_STILL_RUNNING) |
1285 return false; | 1286 return false; |
1286 base::FundamentalValue ignore_cache_value(ignore_cache); | 1287 base::FundamentalValue ignore_cache_value(ignore_cache); |
1287 bindings_->CallClientFunction("DevToolsAPI.reloadInspectedPage", | 1288 bindings_->CallClientFunction("DevToolsAPI.reloadInspectedPage", |
1288 &ignore_cache_value, nullptr, nullptr); | 1289 &ignore_cache_value, nullptr, nullptr); |
1289 return true; | 1290 return true; |
1290 } | 1291 } |
OLD | NEW |