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

Side by Side Diff: chrome/browser/extensions/api/web_navigation/frame_navigation_state.cc

Issue 23658056: content: Move kHttpScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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/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 chrome::kChromeUIScheme,
18 chrome::kHttpScheme, 18 content::kHttpScheme,
19 content::kHttpsScheme, 19 content::kHttpsScheme,
20 chrome::kFileScheme, 20 chrome::kFileScheme,
21 chrome::kFtpScheme, 21 chrome::kFtpScheme,
22 content::kJavaScriptScheme, 22 content::kJavaScriptScheme,
23 chrome::kDataScheme, 23 chrome::kDataScheme,
24 chrome::kFileSystemScheme, 24 chrome::kFileSystemScheme,
25 }; 25 };
26 26
27 } // namespace 27 } // namespace
28 28
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698