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

Side by Side Diff: content/browser/service_worker/service_worker_provider_host.h

Issue 1050733002: ServiceWorker: Clean up ServiceWorkerVersion::OnGetClients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return running_hosted_version_.get(); 99 return running_hosted_version_.get();
100 } 100 }
101 101
102 void SetDocumentUrl(const GURL& url); 102 void SetDocumentUrl(const GURL& url);
103 const GURL& document_url() const { return document_url_; } 103 const GURL& document_url() const { return document_url_; }
104 104
105 void SetTopmostFrameUrl(const GURL& url); 105 void SetTopmostFrameUrl(const GURL& url);
106 const GURL& topmost_frame_url() const { return topmost_frame_url_; } 106 const GURL& topmost_frame_url() const { return topmost_frame_url_; }
107 107
108 ServiceWorkerProviderType provider_type() const { return provider_type_; } 108 ServiceWorkerProviderType provider_type() const { return provider_type_; }
109 bool IsProviderForClient() const;
109 blink::WebServiceWorkerClientType client_type() const; 110 blink::WebServiceWorkerClientType client_type() const;
110 111
111 // Associates to |registration| to listen for its version change events. 112 // Associates to |registration| to listen for its version change events.
112 void AssociateRegistration(ServiceWorkerRegistration* registration); 113 void AssociateRegistration(ServiceWorkerRegistration* registration);
113 114
114 // Clears the associated registration and stop listening to it. 115 // Clears the associated registration and stop listening to it.
115 void DisassociateRegistration(); 116 void DisassociateRegistration();
116 117
117 // Returns false if the version is not in the expected STARTING in our 118 // Returns false if the version is not in the expected STARTING in our
118 // process state. That would be indicative of a bad IPC message. 119 // process state. That would be indicative of a bad IPC message.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 bool is_claiming_; 285 bool is_claiming_;
285 286
286 std::vector<base::Closure> queued_events_; 287 std::vector<base::Closure> queued_events_;
287 288
288 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); 289 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost);
289 }; 290 };
290 291
291 } // namespace content 292 } // namespace content
292 293
293 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 294 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698