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

Side by Side Diff: Source/platform/exported/WebHTTPLoadInfo.cpp

Issue 458313005: Cleanup namespace usage from animation to exported in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanup namespace usage from animation to exported in platform/ Created 6 years, 4 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
« no previous file with comments | « Source/platform/exported/WebHTTPBody.cpp ('k') | Source/platform/exported/WebImageSkia.cpp » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "public/platform/WebHTTPLoadInfo.h" 32 #include "public/platform/WebHTTPLoadInfo.h"
33 33
34 #include "platform/network/ResourceLoadInfo.h" 34 #include "platform/network/ResourceLoadInfo.h"
35 #include "public/platform/WebHTTPHeaderVisitor.h" 35 #include "public/platform/WebHTTPHeaderVisitor.h"
36 #include "public/platform/WebString.h" 36 #include "public/platform/WebString.h"
37 37
38 using namespace blink;
39
40 namespace blink { 38 namespace blink {
41 39
42 void WebHTTPLoadInfo::initialize() 40 void WebHTTPLoadInfo::initialize()
43 { 41 {
44 m_private = adoptRef(new ResourceLoadInfo()); 42 m_private = adoptRef(new ResourceLoadInfo());
45 } 43 }
46 44
47 void WebHTTPLoadInfo::reset() 45 void WebHTTPLoadInfo::reset()
48 { 46 {
49 m_private.reset(); 47 m_private.reset();
50 } 48 }
51 49
52 void WebHTTPLoadInfo::assign(const WebHTTPLoadInfo& r) 50 void WebHTTPLoadInfo::assign(const WebHTTPLoadInfo& r)
53 { 51 {
54 m_private = r.m_private; 52 m_private = r.m_private;
55 } 53 }
56 54
57 WebHTTPLoadInfo::WebHTTPLoadInfo(WTF::PassRefPtr<blink::ResourceLoadInfo> value) 55 WebHTTPLoadInfo::WebHTTPLoadInfo(WTF::PassRefPtr<ResourceLoadInfo> value)
58 : m_private(value) 56 : m_private(value)
59 { 57 {
60 } 58 }
61 59
62 WebHTTPLoadInfo::operator WTF::PassRefPtr<blink::ResourceLoadInfo>() const 60 WebHTTPLoadInfo::operator WTF::PassRefPtr<ResourceLoadInfo>() const
63 { 61 {
64 return m_private.get(); 62 return m_private.get();
65 } 63 }
66 64
67 int WebHTTPLoadInfo::httpStatusCode() const 65 int WebHTTPLoadInfo::httpStatusCode() const
68 { 66 {
69 ASSERT(!m_private.isNull()); 67 ASSERT(!m_private.isNull());
70 return m_private->httpStatusCode; 68 return m_private->httpStatusCode;
71 } 69 }
72 70
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return m_private->responseHeadersText; 136 return m_private->responseHeadersText;
139 } 137 }
140 138
141 void WebHTTPLoadInfo::setResponseHeadersText(const WebString& headersText) 139 void WebHTTPLoadInfo::setResponseHeadersText(const WebString& headersText)
142 { 140 {
143 ASSERT(!m_private.isNull()); 141 ASSERT(!m_private.isNull());
144 m_private->responseHeadersText = headersText; 142 m_private->responseHeadersText = headersText;
145 } 143 }
146 144
147 } // namespace blink 145 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/exported/WebHTTPBody.cpp ('k') | Source/platform/exported/WebImageSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698