| 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/extensions/api/web_navigation/frame_navigation_state.h" | 5 #include "chrome/browser/extensions/api/web_navigation/frame_navigation_state.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
| 9 #include "extensions/common/constants.h" | 9 #include "extensions/common/constants.h" |
| 10 | 10 |
| 11 namespace extensions { | 11 namespace extensions { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 // URL schemes for which we'll send events. | 15 // URL schemes for which we'll send events. |
| 16 const char* kValidSchemes[] = { | 16 const char* kValidSchemes[] = { |
| 17 chrome::kChromeUIScheme, | 17 content::kChromeUIScheme, |
| 18 content::kHttpScheme, | 18 content::kHttpScheme, |
| 19 content::kHttpsScheme, | 19 content::kHttpsScheme, |
| 20 content::kFileScheme, | 20 content::kFileScheme, |
| 21 content::kFtpScheme, | 21 content::kFtpScheme, |
| 22 content::kJavaScriptScheme, | 22 content::kJavaScriptScheme, |
| 23 content::kDataScheme, | 23 content::kDataScheme, |
| 24 content::kFileSystemScheme, | 24 content::kFileSystemScheme, |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 } // namespace | 27 } // namespace |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 } | 262 } |
| 263 | 263 |
| 264 bool FrameNavigationState::GetIsServerRedirected(FrameID frame_id) const { | 264 bool FrameNavigationState::GetIsServerRedirected(FrameID frame_id) const { |
| 265 FrameIdToStateMap::const_iterator frame_state = | 265 FrameIdToStateMap::const_iterator frame_state = |
| 266 frame_state_map_.find(frame_id); | 266 frame_state_map_.find(frame_id); |
| 267 return (frame_state != frame_state_map_.end() && | 267 return (frame_state != frame_state_map_.end() && |
| 268 frame_state->second.is_server_redirected); | 268 frame_state->second.is_server_redirected); |
| 269 } | 269 } |
| 270 | 270 |
| 271 } // namespace extensions | 271 } // namespace extensions |
| OLD | NEW |