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

Side by Side Diff: Source/modules/serviceworkers/Headers.h

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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/modules/quota/StorageUsageCallback.h ('k') | Source/modules/serviceworkers/Headers.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef Headers_h 5 #ifndef Headers_h
6 #define Headers_h 6 #define Headers_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "modules/serviceworkers/FetchHeaderList.h" 9 #include "modules/serviceworkers/FetchHeaderList.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
(...skipping 23 matching lines...) Expand all
34 Headers* createCopy() const; 34 Headers* createCopy() const;
35 35
36 // Headers.idl implementation. 36 // Headers.idl implementation.
37 void append(const String& name, const String& value, ExceptionState&); 37 void append(const String& name, const String& value, ExceptionState&);
38 void remove(const String& key, ExceptionState&); 38 void remove(const String& key, ExceptionState&);
39 String get(const String& key, ExceptionState&); 39 String get(const String& key, ExceptionState&);
40 Vector<String> getAll(const String& key, ExceptionState&); 40 Vector<String> getAll(const String& key, ExceptionState&);
41 bool has(const String& key, ExceptionState&); 41 bool has(const String& key, ExceptionState&);
42 void set(const String& key, const String& value, ExceptionState&); 42 void set(const String& key, const String& value, ExceptionState&);
43 unsigned long size() const; 43 unsigned long size() const;
44 void forEach(PassOwnPtrWillBeRawPtr<HeadersForEachCallback>, const ScriptVal ue&); 44 void forEach(HeadersForEachCallback*, const ScriptValue&);
45 void forEach(PassOwnPtrWillBeRawPtr<HeadersForEachCallback>); 45 void forEach(HeadersForEachCallback*);
46 46
47 void setGuard(Guard guard) { m_guard = guard; } 47 void setGuard(Guard guard) { m_guard = guard; }
48 Guard guard() const { return m_guard; } 48 Guard guard() const { return m_guard; }
49 49
50 // These methods should only be called when size() would return 0. 50 // These methods should only be called when size() would return 0.
51 void fillWith(const Headers*, ExceptionState&); 51 void fillWith(const Headers*, ExceptionState&);
52 void fillWith(const Dictionary&, ExceptionState&); 52 void fillWith(const Dictionary&, ExceptionState&);
53 53
54 void trace(Visitor*); 54 void trace(Visitor*);
55 55
56 private: 56 private:
57 Headers(); 57 Headers();
58 // Shares the FetchHeaderList. Called when creating a Request or Response. 58 // Shares the FetchHeaderList. Called when creating a Request or Response.
59 explicit Headers(FetchHeaderList*); 59 explicit Headers(FetchHeaderList*);
60 void forEachInternal(PassOwnPtrWillBeRawPtr<HeadersForEachCallback>, const S criptValue*); 60 void forEachInternal(HeadersForEachCallback*, const ScriptValue*);
61 61
62 Member<FetchHeaderList> m_headerList; 62 Member<FetchHeaderList> m_headerList;
63 Guard m_guard; 63 Guard m_guard;
64 }; 64 };
65 65
66 } // namespace blink 66 } // namespace blink
67 67
68 #endif // Headers_h 68 #endif // Headers_h
OLDNEW
« no previous file with comments | « Source/modules/quota/StorageUsageCallback.h ('k') | Source/modules/serviceworkers/Headers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698