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

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

Issue 302263004: Oilpan: Move [WillBeGarbageCollected] from Node to EventTarget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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/modules.gypi ('k') | Source/modules/webmidi/MIDIConnectionEvent.h » ('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 public blink::WebServiceWorkerProviderClient { 60 public blink::WebServiceWorkerProviderClient {
61 public: 61 public:
62 static PassRefPtr<ServiceWorkerContainer> create(ExecutionContext*); 62 static PassRefPtr<ServiceWorkerContainer> create(ExecutionContext*);
63 ~ServiceWorkerContainer(); 63 ~ServiceWorkerContainer();
64 64
65 void detachClient(); 65 void detachClient();
66 66
67 ScriptPromise registerServiceWorker(ScriptState*, const String& pattern, con st Dictionary&); 67 ScriptPromise registerServiceWorker(ScriptState*, const String& pattern, con st Dictionary&);
68 ScriptPromise unregisterServiceWorker(ScriptState*, const String& scope = St ring()); 68 ScriptPromise unregisterServiceWorker(ScriptState*, const String& scope = St ring());
69 69
70 PassRefPtr<ServiceWorker> controller() { return m_controller; } 70 PassRefPtrWillBeRawPtr<ServiceWorker> controller() { return m_controller.get (); }
71 71
72 // WebServiceWorkerProviderClient overrides. 72 // WebServiceWorkerProviderClient overrides.
73 virtual void setController(blink::WebServiceWorker*) OVERRIDE; 73 virtual void setController(blink::WebServiceWorker*) OVERRIDE;
74 virtual void dispatchMessageEvent(const blink::WebString& message, const bli nk::WebMessagePortChannelArray&) OVERRIDE; 74 virtual void dispatchMessageEvent(const blink::WebString& message, const bli nk::WebMessagePortChannelArray&) OVERRIDE;
75 75
76 // FIXME: Delete this when the embedder switches to setController. 76 // FIXME: Delete this when the embedder switches to setController.
77 virtual void setCurrentServiceWorker(blink::WebServiceWorker*) OVERRIDE; 77 virtual void setCurrentServiceWorker(blink::WebServiceWorker*) OVERRIDE;
78 78
79 private: 79 private:
80 explicit ServiceWorkerContainer(ExecutionContext*); 80 explicit ServiceWorkerContainer(ExecutionContext*);
81 81
82 blink::WebServiceWorkerProvider* m_provider; 82 blink::WebServiceWorkerProvider* m_provider;
83 RefPtr<ServiceWorker> m_controller; 83 RefPtr<ServiceWorker> m_controller;
84 }; 84 };
85 85
86 } // namespace WebCore 86 } // namespace WebCore
87 87
88 #endif // ServiceWorkerContainer_h 88 #endif // ServiceWorkerContainer_h
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webmidi/MIDIConnectionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698