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

Side by Side Diff: Source/platform/ContentType.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
« no previous file with comments | « Source/platform/ContentType.h ('k') | Source/platform/ContextMenu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 10 matching lines...) Expand all
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #include "config.h" 28 #include "config.h"
29 #include "platform/ContentType.h" 29 #include "platform/ContentType.h"
30 30
31 namespace WebCore { 31 namespace blink {
32 32
33 ContentType::ContentType(const String& contentType) 33 ContentType::ContentType(const String& contentType)
34 : m_type(contentType) 34 : m_type(contentType)
35 { 35 {
36 } 36 }
37 37
38 String ContentType::parameter(const String& parameterName) const 38 String ContentType::parameter(const String& parameterName) const
39 { 39 {
40 String parameterValue; 40 String parameterValue;
41 String strippedType = m_type.stripWhiteSpace(); 41 String strippedType = m_type.stripWhiteSpace();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 return Vector<String>(); 84 return Vector<String>();
85 85
86 Vector<String> codecs; 86 Vector<String> codecs;
87 codecsParameter.split(',', codecs); 87 codecsParameter.split(',', codecs);
88 for (size_t i = 0; i < codecs.size(); ++i) 88 for (size_t i = 0; i < codecs.size(); ++i)
89 codecs[i] = codecs[i].simplifyWhiteSpace(); 89 codecs[i] = codecs[i].simplifyWhiteSpace();
90 90
91 return codecs; 91 return codecs;
92 } 92 }
93 93
94 } // namespace WebCore 94 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/ContentType.h ('k') | Source/platform/ContextMenu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698