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

Side by Side Diff: Source/bindings/v8/Dictionary.h

Issue 358573002: [ServiceWorker] Implement Headers class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 5 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
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 class ArrayValue; 46 class ArrayValue;
47 class DOMError; 47 class DOMError;
48 class Element; 48 class Element;
49 class LocalDOMWindow; 49 class LocalDOMWindow;
50 class Gamepad; 50 class Gamepad;
51 class MediaStream; 51 class MediaStream;
52 class HeaderMap; 52 class HeaderMap;
53 class Headers;
53 class IDBKeyRange; 54 class IDBKeyRange;
54 class MIDIPort; 55 class MIDIPort;
55 class MediaKeyError; 56 class MediaKeyError;
56 class Notification; 57 class Notification;
57 class SpeechRecognitionResult; 58 class SpeechRecognitionResult;
58 class SpeechRecognitionResultList; 59 class SpeechRecognitionResultList;
59 class Storage; 60 class Storage;
60 class TrackBase; 61 class TrackBase;
61 class VoidCallback; 62 class VoidCallback;
62 63
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool get(const String&, Member<Gamepad>&) const; 98 bool get(const String&, Member<Gamepad>&) const;
98 bool get(const String&, Member<MediaStream>&) const; 99 bool get(const String&, Member<MediaStream>&) const;
99 bool get(const String&, RefPtrWillBeMember<EventTarget>&) const; 100 bool get(const String&, RefPtrWillBeMember<EventTarget>&) const;
100 bool get(const String&, HashSet<AtomicString>&) const; 101 bool get(const String&, HashSet<AtomicString>&) const;
101 bool get(const String&, Dictionary&) const; 102 bool get(const String&, Dictionary&) const;
102 bool get(const String&, Vector<String>&) const; 103 bool get(const String&, Vector<String>&) const;
103 bool get(const String&, ArrayValue&) const; 104 bool get(const String&, ArrayValue&) const;
104 bool get(const String&, RefPtrWillBeMember<DOMError>&) const; 105 bool get(const String&, RefPtrWillBeMember<DOMError>&) const;
105 bool get(const String&, v8::Local<v8::Value>&) const; 106 bool get(const String&, v8::Local<v8::Value>&) const;
106 bool get(const String&, RefPtr<HeaderMap>&) const; 107 bool get(const String&, RefPtr<HeaderMap>&) const;
108 bool get(const String&, RefPtr<Headers>&) const;
107 109
108 class ConversionContext { 110 class ConversionContext {
109 public: 111 public:
110 ConversionContext(const String& interfaceName, const String& methodName, ExceptionState& exceptionState) 112 ConversionContext(const String& interfaceName, const String& methodName, ExceptionState& exceptionState)
111 : m_interfaceName(interfaceName) 113 : m_interfaceName(interfaceName)
112 , m_methodName(methodName) 114 , m_methodName(methodName)
113 , m_exceptionState(exceptionState) 115 , m_exceptionState(exceptionState)
114 , m_dirty(true) 116 , m_dirty(true)
115 { 117 {
116 resetPerPropertyContext(); 118 resetPerPropertyContext();
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) 344 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value))
343 return true; 345 return true;
344 346
345 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n ot have a " + context.typeName() + " type.")); 347 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n ot have a " + context.typeName() + " type."));
346 return false; 348 return false;
347 } 349 }
348 350
349 } 351 }
350 352
351 #endif // Dictionary_h 353 #endif // Dictionary_h
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/headers-worker.js ('k') | Source/bindings/v8/Dictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698