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

Side by Side Diff: chrome/browser/sessions/session_service.cc

Issue 391036: Forbid reloading the Inspector window (Closed)
Patch Set: Follow codereview Created 10 years, 12 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/sessions/session_service.h" 7 #include "chrome/browser/sessions/session_service.h"
8 8
9 #include <limits> 9 #include <limits>
10 10
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 SessionService::WindowType SessionService::WindowTypeForBrowserType( 1172 SessionService::WindowType SessionService::WindowTypeForBrowserType(
1173 Browser::Type type) { 1173 Browser::Type type) {
1174 // We don't support masks here, only discrete types. 1174 // We don't support masks here, only discrete types.
1175 switch (type) { 1175 switch (type) {
1176 case Browser::TYPE_POPUP: 1176 case Browser::TYPE_POPUP:
1177 return TYPE_POPUP; 1177 return TYPE_POPUP;
1178 case Browser::TYPE_APP: 1178 case Browser::TYPE_APP:
1179 return TYPE_APP; 1179 return TYPE_APP;
1180 case Browser::TYPE_APP_POPUP: 1180 case Browser::TYPE_APP_POPUP:
1181 return TYPE_APP_POPUP; 1181 return TYPE_APP_POPUP;
1182 case Browser::TYPE_DEVTOOLS:
1183 return TYPE_DEVTOOLS;
1182 case Browser::TYPE_NORMAL: 1184 case Browser::TYPE_NORMAL:
1183 default: 1185 default:
1184 return TYPE_NORMAL; 1186 return TYPE_NORMAL;
1185 } 1187 }
1186 } 1188 }
1187 1189
1188 Browser::Type SessionService::BrowserTypeForWindowType( 1190 Browser::Type SessionService::BrowserTypeForWindowType(
1189 SessionService::WindowType type) { 1191 SessionService::WindowType type) {
1190 switch (type) { 1192 switch (type) {
1191 case TYPE_POPUP: 1193 case TYPE_POPUP:
1192 return Browser::TYPE_POPUP; 1194 return Browser::TYPE_POPUP;
1193 case TYPE_APP: 1195 case TYPE_APP:
1194 return Browser::TYPE_APP; 1196 return Browser::TYPE_APP;
1195 case TYPE_APP_POPUP: 1197 case TYPE_APP_POPUP:
1196 return Browser::TYPE_APP_POPUP; 1198 return Browser::TYPE_APP_POPUP;
1199 case TYPE_DEVTOOLS:
1200 return Browser::TYPE_DEVTOOLS;
1197 case TYPE_NORMAL: 1201 case TYPE_NORMAL:
1198 default: 1202 default:
1199 return Browser::TYPE_NORMAL; 1203 return Browser::TYPE_NORMAL;
1200 } 1204 }
1201 } 1205 }
1202
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698