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

Unified Diff: Source/platform/mhtml/ArchiveResource.h

Issue 99333006: Use AtomicString type more consistently for mimeType / encoding (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/loader/TextResourceDecoderBuilder.cpp ('k') | Source/platform/mhtml/ArchiveResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mhtml/ArchiveResource.h
diff --git a/Source/platform/mhtml/ArchiveResource.h b/Source/platform/mhtml/ArchiveResource.h
index fdf0e55b927e41bdf1f33d8dceb678bfa377bdde..3bfde70511e2321cdab93a5b9fae687a2d660018 100644
--- a/Source/platform/mhtml/ArchiveResource.h
+++ b/Source/platform/mhtml/ArchiveResource.h
@@ -41,24 +41,24 @@ class PLATFORM_EXPORT ArchiveResource : public RefCounted<ArchiveResource> {
public:
static PassRefPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const KURL&, const ResourceResponse&);
static PassRefPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const KURL&,
- const String& mimeType, const String& textEncoding, const String& frameName,
+ const AtomicString& mimeType, const AtomicString& textEncoding, const String& frameName,
const ResourceResponse& = ResourceResponse());
const KURL& url() const { return m_url; }
const ResourceResponse& response() const { return m_response; }
SharedBuffer* data() const { return m_data.get(); }
- const String& mimeType() const { return m_mimeType; }
- const String& textEncoding() const { return m_textEncoding; }
+ const AtomicString& mimeType() const { return m_mimeType; }
+ const AtomicString& textEncoding() const { return m_textEncoding; }
const String& frameName() const { return m_frameName; }
private:
- ArchiveResource(PassRefPtr<SharedBuffer>, const KURL&, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse&);
+ ArchiveResource(PassRefPtr<SharedBuffer>, const KURL&, const AtomicString& mimeType, const AtomicString& textEncoding, const String& frameName, const ResourceResponse&);
KURL m_url;
ResourceResponse m_response;
RefPtr<SharedBuffer> m_data;
- String m_mimeType;
- String m_textEncoding;
+ AtomicString m_mimeType;
+ AtomicString m_textEncoding;
String m_frameName;
};
« no previous file with comments | « Source/core/loader/TextResourceDecoderBuilder.cpp ('k') | Source/platform/mhtml/ArchiveResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698