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

Side by Side Diff: Source/platform/weborigin/SecurityOrigin.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 22 matching lines...) Expand all
33 #include "platform/weborigin/KnownPorts.h" 33 #include "platform/weborigin/KnownPorts.h"
34 #include "platform/weborigin/SchemeRegistry.h" 34 #include "platform/weborigin/SchemeRegistry.h"
35 #include "platform/weborigin/SecurityOriginCache.h" 35 #include "platform/weborigin/SecurityOriginCache.h"
36 #include "platform/weborigin/SecurityPolicy.h" 36 #include "platform/weborigin/SecurityPolicy.h"
37 #include "url/url_canon_ip.h" 37 #include "url/url_canon_ip.h"
38 #include "wtf/HexNumber.h" 38 #include "wtf/HexNumber.h"
39 #include "wtf/MainThread.h" 39 #include "wtf/MainThread.h"
40 #include "wtf/StdLibExtras.h" 40 #include "wtf/StdLibExtras.h"
41 #include "wtf/text/StringBuilder.h" 41 #include "wtf/text/StringBuilder.h"
42 42
43 namespace WebCore { 43 namespace blink {
44 44
45 const int InvalidPort = 0; 45 const int InvalidPort = 0;
46 const int MaxAllowedPort = 65535; 46 const int MaxAllowedPort = 65535;
47 47
48 static SecurityOriginCache* s_originCache = 0; 48 static SecurityOriginCache* s_originCache = 0;
49 49
50 static bool schemeRequiresAuthority(const KURL& url) 50 static bool schemeRequiresAuthority(const KURL& url)
51 { 51 {
52 // We expect URLs with these schemes to have authority components. If the 52 // We expect URLs with these schemes to have authority components. If the
53 // URL lacks an authority component, we get concerned and mark the origin 53 // URL lacks an authority component, we get concerned and mark the origin
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 return true; 520 return true;
521 } 521 }
522 522
523 const String& SecurityOrigin::urlWithUniqueSecurityOrigin() 523 const String& SecurityOrigin::urlWithUniqueSecurityOrigin()
524 { 524 {
525 ASSERT(isMainThread()); 525 ASSERT(isMainThread());
526 DEFINE_STATIC_LOCAL(const String, uniqueSecurityOriginURL, ("data:,")); 526 DEFINE_STATIC_LOCAL(const String, uniqueSecurityOriginURL, ("data:,"));
527 return uniqueSecurityOriginURL; 527 return uniqueSecurityOriginURL;
528 } 528 }
529 529
530 } // namespace WebCore 530 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/weborigin/SecurityOrigin.h ('k') | Source/platform/weborigin/SecurityOriginCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698