OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_frame/navigation_constraints.h" | 5 #include "chrome_frame/navigation_constraints.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
10 #include "chrome_frame/utils.h" | 10 #include "chrome_frame/utils.h" |
11 #include "extensions/common/constants.h" | 11 #include "extensions/common/constants.h" |
12 | 12 |
13 NavigationConstraintsImpl::NavigationConstraintsImpl() : is_privileged_(false) { | 13 NavigationConstraintsImpl::NavigationConstraintsImpl() : is_privileged_(false) { |
14 } | 14 } |
15 | 15 |
16 // NavigationConstraintsImpl method definitions. | 16 // NavigationConstraintsImpl method definitions. |
17 bool NavigationConstraintsImpl::AllowUnsafeUrls() { | 17 bool NavigationConstraintsImpl::AllowUnsafeUrls() { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 return true; | 78 return true; |
79 } | 79 } |
80 | 80 |
81 bool NavigationConstraintsImpl::is_privileged() const { | 81 bool NavigationConstraintsImpl::is_privileged() const { |
82 return is_privileged_; | 82 return is_privileged_; |
83 } | 83 } |
84 | 84 |
85 void NavigationConstraintsImpl::set_is_privileged(bool is_privileged) { | 85 void NavigationConstraintsImpl::set_is_privileged(bool is_privileged) { |
86 is_privileged_ = is_privileged; | 86 is_privileged_ = is_privileged; |
87 } | 87 } |
OLD | NEW |