Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / serviceworkers / FetchHeaderList.h
index 6bfde3d..f81b35c 100644 (file)
@@ -17,7 +17,7 @@ namespace blink {
 class Header;
 
 // http://fetch.spec.whatwg.org/#terminology-headers
-class FetchHeaderList FINAL : public GarbageCollectedFinalized<FetchHeaderList> {
+class FetchHeaderList final : public GarbageCollectedFinalized<FetchHeaderList> {
 public:
     typedef std::pair<String, String> Header;
     static FetchHeaderList* create();
@@ -39,6 +39,7 @@ public:
     bool containsNonSimpleHeader() const;
 
     const Vector<OwnPtr<Header> >& list() const { return m_headerList; }
+    const Header& entry(size_t index) const { return *(m_headerList[index].get()); }
 
     static bool isValidHeaderName(const String&);
     static bool isValidHeaderValue(const String&);