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

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

Issue 287363004: ServiceWorker: support Response.{status,statusText,headers} [blink] (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
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 30 matching lines...) Expand all
41 #include "wtf/text/AtomicString.h" 41 #include "wtf/text/AtomicString.h"
42 #include "wtf/text/WTFString.h" 42 #include "wtf/text/WTFString.h"
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 class ArrayValue; 46 class ArrayValue;
47 class DOMError; 47 class DOMError;
48 class DOMWindow; 48 class DOMWindow;
49 class Gamepad; 49 class Gamepad;
50 class MediaStream; 50 class MediaStream;
51 class HeaderMap;
51 class IDBKeyRange; 52 class IDBKeyRange;
52 class MIDIPort; 53 class MIDIPort;
53 class MediaKeyError; 54 class MediaKeyError;
54 class Notification; 55 class Notification;
55 class SpeechRecognitionError; 56 class SpeechRecognitionError;
56 class SpeechRecognitionResult; 57 class SpeechRecognitionResult;
57 class SpeechRecognitionResultList; 58 class SpeechRecognitionResultList;
58 class Storage; 59 class Storage;
59 class TrackBase; 60 class TrackBase;
60 class VoidCallback; 61 class VoidCallback;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool get(const String&, RefPtrWillBeMember<SpeechRecognitionResultList>&) co nst; 97 bool get(const String&, RefPtrWillBeMember<SpeechRecognitionResultList>&) co nst;
97 bool get(const String&, Member<Gamepad>&) const; 98 bool get(const String&, Member<Gamepad>&) const;
98 bool get(const String&, RefPtr<MediaStream>&) const; 99 bool get(const String&, RefPtr<MediaStream>&) const;
99 bool get(const String&, RefPtr<EventTarget>&) const; 100 bool get(const String&, RefPtr<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;
107 bool get(const String&, RefPtr<HeaderMap>&) const;
106 108
107 class ConversionContext { 109 class ConversionContext {
108 public: 110 public:
109 ConversionContext(const String& interfaceName, const String& methodName, ExceptionState& exceptionState) 111 ConversionContext(const String& interfaceName, const String& methodName, ExceptionState& exceptionState)
110 : m_interfaceName(interfaceName) 112 : m_interfaceName(interfaceName)
111 , m_methodName(methodName) 113 , m_methodName(methodName)
112 , m_exceptionState(exceptionState) 114 , m_exceptionState(exceptionState)
113 , m_dirty(true) 115 , m_dirty(true)
114 { 116 {
115 resetPerPropertyContext(); 117 resetPerPropertyContext();
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) 342 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value))
341 return true; 343 return true;
342 344
343 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n ot have a " + context.typeName() + " type.")); 345 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n ot have a " + context.typeName() + " type."));
344 return false; 346 return false;
345 } 347 }
346 348
347 } 349 }
348 350
349 #endif // Dictionary_h 351 #endif // Dictionary_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698