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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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) 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class Dictionary; 42 class Dictionary;
43 class FetchManager; 43 class FetchManager;
44 class Request; 44 class Request;
45 class ScriptPromise; 45 class ScriptPromise;
46 class ScriptState; 46 class ScriptState;
47 class ServiceWorkerClients; 47 class ServiceWorkerClients;
48 class ServiceWorkerThread; 48 class ServiceWorkerThread;
49 class WorkerThreadStartupData; 49 class WorkerThreadStartupData;
50 50
51 class ServiceWorkerGlobalScope FINAL : public WorkerGlobalScope { 51 class ServiceWorkerGlobalScope FINAL : public WorkerGlobalScope {
52 DEFINE_WRAPPERTYPEINFO();
52 public: 53 public:
53 static PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> create(ServiceWorker Thread*, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>); 54 static PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> create(ServiceWorker Thread*, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>);
54 55
55 virtual ~ServiceWorkerGlobalScope(); 56 virtual ~ServiceWorkerGlobalScope();
56 virtual bool isServiceWorkerGlobalScope() const OVERRIDE { return true; } 57 virtual bool isServiceWorkerGlobalScope() const OVERRIDE { return true; }
57 virtual void stopFetch() OVERRIDE; 58 virtual void stopFetch() OVERRIDE;
58 59
59 // ServiceWorkerGlobalScope.idl 60 // ServiceWorkerGlobalScope.idl
60 PassRefPtrWillBeRawPtr<ServiceWorkerClients> clients(); 61 PassRefPtrWillBeRawPtr<ServiceWorkerClients> clients();
61 String scope(ExecutionContext*); 62 String scope(ExecutionContext*);
(...skipping 24 matching lines...) Expand all
86 virtual void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP tr<ScriptCallStack>) OVERRIDE; 87 virtual void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP tr<ScriptCallStack>) OVERRIDE;
87 88
88 RefPtrWillBeMember<ServiceWorkerClients> m_clients; 89 RefPtrWillBeMember<ServiceWorkerClients> m_clients;
89 OwnPtr<FetchManager> m_fetchManager; 90 OwnPtr<FetchManager> m_fetchManager;
90 RefPtrWillBeMember<CacheStorage> m_caches; 91 RefPtrWillBeMember<CacheStorage> m_caches;
91 }; 92 };
92 93
93 } // namespace blink 94 } // namespace blink
94 95
95 #endif // ServiceWorkerGlobalScope_h 96 #endif // ServiceWorkerGlobalScope_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.h ('k') | Source/modules/serviceworkers/ServiceWorkerRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698