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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.h

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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) 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 ScriptPromise registerServiceWorker(ScriptState*, const String& pattern, con st RegistrationOptions&); 73 ScriptPromise registerServiceWorker(ScriptState*, const String& pattern, con st RegistrationOptions&);
74 ScriptPromise getRegistration(ScriptState*, const String& documentURL); 74 ScriptPromise getRegistration(ScriptState*, const String& documentURL);
75 ScriptPromise getRegistrations(ScriptState*); 75 ScriptPromise getRegistrations(ScriptState*);
76 76
77 // WebServiceWorkerProviderClient overrides. 77 // WebServiceWorkerProviderClient overrides.
78 void setController(WebPassOwnPtr<WebServiceWorker::Handle>, bool shouldNotif yControllerChange) override; 78 void setController(WebPassOwnPtr<WebServiceWorker::Handle>, bool shouldNotif yControllerChange) override;
79 void dispatchMessageEvent(WebPassOwnPtr<WebServiceWorker::Handle>, const Web String& message, const WebMessagePortChannelArray&) override; 79 void dispatchMessageEvent(WebPassOwnPtr<WebServiceWorker::Handle>, const Web String& message, const WebMessagePortChannelArray&) override;
80 80
81 // EventTarget overrides. 81 // EventTarget overrides.
82 ExecutionContext* executionContext() const override { return ContextLifecycl eObserver::executionContext(); } 82 ExecutionContext* getExecutionContext() const override { return ContextLifec ycleObserver::getExecutionContext(); }
83 const AtomicString& interfaceName() const override; 83 const AtomicString& interfaceName() const override;
84 84
85 DEFINE_ATTRIBUTE_EVENT_LISTENER(controllerchange); 85 DEFINE_ATTRIBUTE_EVENT_LISTENER(controllerchange);
86 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 86 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
87 87
88 private: 88 private:
89 explicit ServiceWorkerContainer(ExecutionContext*); 89 explicit ServiceWorkerContainer(ExecutionContext*);
90 90
91 class GetRegistrationForReadyCallback; 91 class GetRegistrationForReadyCallback;
92 typedef ScriptPromiseProperty<Member<ServiceWorkerContainer>, Member<Service WorkerRegistration>, Member<ServiceWorkerRegistration>> ReadyProperty; 92 typedef ScriptPromiseProperty<Member<ServiceWorkerContainer>, Member<Service WorkerRegistration>, Member<ServiceWorkerRegistration>> ReadyProperty;
93 ReadyProperty* createReadyProperty(); 93 ReadyProperty* createReadyProperty();
94 94
95 WebServiceWorkerProvider* m_provider; 95 WebServiceWorkerProvider* m_provider;
96 Member<ServiceWorker> m_controller; 96 Member<ServiceWorker> m_controller;
97 Member<ReadyProperty> m_ready; 97 Member<ReadyProperty> m_ready;
98 }; 98 };
99 99
100 } // namespace blink 100 } // namespace blink
101 101
102 #endif // ServiceWorkerContainer_h 102 #endif // ServiceWorkerContainer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698