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

Side by Side Diff: third_party/WebKit/Source/core/fetch/DocumentResource.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> 2 Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com>
3 Copyright (C) 2011 Cosmin Truta <ctruta@gmail.com> 3 Copyright (C) 2011 Cosmin Truta <ctruta@gmail.com>
4 Copyright (C) 2012 University of Szeged 4 Copyright (C) 2012 University of Szeged
5 Copyright (C) 2012 Renata Hodovan <reni@webkit.org> 5 Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 DocumentResource::~DocumentResource() 50 DocumentResource::~DocumentResource()
51 { 51 {
52 } 52 }
53 53
54 DEFINE_TRACE(DocumentResource) 54 DEFINE_TRACE(DocumentResource)
55 { 55 {
56 visitor->trace(m_document); 56 visitor->trace(m_document);
57 Resource::trace(visitor); 57 Resource::trace(visitor);
58 } 58 }
59 59
60 Document* DocumentResource::document() const
61 {
62 return m_document.get();
63 }
64
60 void DocumentResource::setEncoding(const String& chs) 65 void DocumentResource::setEncoding(const String& chs)
61 { 66 {
62 m_decoder->setEncoding(chs, TextResourceDecoder::EncodingFromHTTPHeader); 67 m_decoder->setEncoding(chs, TextResourceDecoder::EncodingFromHTTPHeader);
63 } 68 }
64 69
65 String DocumentResource::encoding() const 70 String DocumentResource::encoding() const
66 { 71 {
67 return m_decoder->encoding().name(); 72 return m_decoder->encoding().name();
68 } 73 }
69 74
(...skipping 16 matching lines...) Expand all
86 case SVGDocument: 91 case SVGDocument:
87 return XMLDocument::createSVG(DocumentInit(url)); 92 return XMLDocument::createSVG(DocumentInit(url));
88 default: 93 default:
89 // FIXME: We'll add more types to support HTMLImports. 94 // FIXME: We'll add more types to support HTMLImports.
90 ASSERT_NOT_REACHED(); 95 ASSERT_NOT_REACHED();
91 return nullptr; 96 return nullptr;
92 } 97 }
93 } 98 }
94 99
95 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698