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

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

Issue 717283002: Service Workers: Remove overloads for optional Dictionary arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | « no previous file | Source/modules/serviceworkers/ServiceWorkerGlobalScope.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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // WorkerGlobalScope 60 // WorkerGlobalScope
61 virtual void stopFetch() override; 61 virtual void stopFetch() override;
62 virtual void didEvaluateWorkerScript() override; 62 virtual void didEvaluateWorkerScript() override;
63 63
64 // ServiceWorkerGlobalScope.idl 64 // ServiceWorkerGlobalScope.idl
65 ServiceWorkerClients* clients(); 65 ServiceWorkerClients* clients();
66 String scope(ExecutionContext*); 66 String scope(ExecutionContext*);
67 67
68 CacheStorage* caches(ExecutionContext*); 68 CacheStorage* caches(ExecutionContext*);
69 69
70 ScriptPromise fetch(ScriptState*, Request*);
71 ScriptPromise fetch(ScriptState*, Request*, const Dictionary&); 70 ScriptPromise fetch(ScriptState*, Request*, const Dictionary&);
72 ScriptPromise fetch(ScriptState*, const String&);
73 ScriptPromise fetch(ScriptState*, const String&, const Dictionary&); 71 ScriptPromise fetch(ScriptState*, const String&, const Dictionary&);
74 72
75 void close(ExceptionState&); 73 void close(ExceptionState&);
76 74
77 // EventTarget 75 // EventTarget
78 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) override; 76 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) override;
79 virtual const AtomicString& interfaceName() const override; 77 virtual const AtomicString& interfaceName() const override;
80 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override; 78 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) override;
81 79
82 void dispatchExtendableEvent(PassRefPtrWillBeRawPtr<Event>, WaitUntilObserve r*); 80 void dispatchExtendableEvent(PassRefPtrWillBeRawPtr<Event>, WaitUntilObserve r*);
(...skipping 15 matching lines...) Expand all
98 OwnPtr<FetchManager> m_fetchManager; 96 OwnPtr<FetchManager> m_fetchManager;
99 PersistentWillBeMember<CacheStorage> m_caches; 97 PersistentWillBeMember<CacheStorage> m_caches;
100 bool m_didEvaluateScript; 98 bool m_didEvaluateScript;
101 bool m_hadErrorInTopLevelEventHandler; 99 bool m_hadErrorInTopLevelEventHandler;
102 unsigned m_eventNestingLevel; 100 unsigned m_eventNestingLevel;
103 }; 101 };
104 102
105 } // namespace blink 103 } // namespace blink
106 104
107 #endif // ServiceWorkerGlobalScope_h 105 #endif // ServiceWorkerGlobalScope_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698