summaryrefslogtreecommitdiffstats
path: root/net/base/cookie_policy.cc
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-31 19:40:37 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-31 19:40:37 +0000
commit8ac1a75acadaa2aae065212cb6255d00c789a184 (patch)
tree854eaf66ba8ce7e581bd8e6f1fa75f46d22f4bb7 /net/base/cookie_policy.cc
parent287a019ed5d015185cab41f6c7156dc6c4cbcee7 (diff)
downloadchromium_src-8ac1a75acadaa2aae065212cb6255d00c789a184.zip
chromium_src-8ac1a75acadaa2aae065212cb6255d00c789a184.tar.gz
chromium_src-8ac1a75acadaa2aae065212cb6255d00c789a184.tar.bz2
Move more net classes into the net namespace. Also remove the net_util namespace in favor of the net namespace.
This is a purely mechanical change. There should be no logic changes. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_policy.cc')
-rw-r--r--net/base/cookie_policy.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/net/base/cookie_policy.cc b/net/base/cookie_policy.cc
index f0b2199e..da859ee 100644
--- a/net/base/cookie_policy.cc
+++ b/net/base/cookie_policy.cc
@@ -27,10 +27,13 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include "base/logging.h"
#include "net/base/cookie_policy.h"
+
+#include "base/logging.h"
#include "net/base/registry_controlled_domain.h"
+namespace net {
+
bool CookiePolicy::CanGetCookies(const GURL& url, const GURL& policy_url) {
switch (type_) {
case CookiePolicy::ALLOW_ALL_COOKIES:
@@ -53,7 +56,7 @@ bool CookiePolicy::CanSetCookie(const GURL& url, const GURL& policy_url) {
if (policy_url.is_empty())
return true; // Empty policy URL should indicate a first-party request
- return RegistryControlledDomainService::SameDomainOrHost(url, policy_url);
+ return net::RegistryControlledDomainService::SameDomainOrHost(url, policy_url);
case CookiePolicy::BLOCK_ALL_COOKIES:
return false;
default:
@@ -62,5 +65,7 @@ bool CookiePolicy::CanSetCookie(const GURL& url, const GURL& policy_url) {
}
}
-CookiePolicy::CookiePolicy()
- : type_(CookiePolicy::ALLOW_ALL_COOKIES) { } \ No newline at end of file
+CookiePolicy::CookiePolicy() : type_(CookiePolicy::ALLOW_ALL_COOKIES) {
+}
+
+} // namespace net