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

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

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef NavigatorServiceWorker_h 31 #ifndef NavigatorServiceWorker_h
32 #define NavigatorServiceWorker_h 32 #define NavigatorServiceWorker_h
33 33
34 #include "bindings/v8/ScriptPromise.h" 34 #include "bindings/v8/ScriptPromise.h"
35 #include "core/frame/Navigator.h" 35 #include "core/frame/Navigator.h"
36 #include "platform/Supplementable.h" 36 #include "platform/Supplementable.h"
37 37
38 namespace WebKit { 38 namespace blink {
39 class WebServiceWorkerProvider; 39 class WebServiceWorkerProvider;
40 class WebServiceWorkerProviderClient; 40 class WebServiceWorkerProviderClient;
41 } 41 }
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 class ExceptionState; 45 class ExceptionState;
46 class Navigator; 46 class Navigator;
47 47
48 class NavigatorServiceWorker : public Supplement<Navigator>, DOMWindowProperty { 48 class NavigatorServiceWorker : public Supplement<Navigator>, DOMWindowProperty {
49 public: 49 public:
50 virtual ~NavigatorServiceWorker(); 50 virtual ~NavigatorServiceWorker();
51 static NavigatorServiceWorker* from(Navigator*); 51 static NavigatorServiceWorker* from(Navigator*);
52 static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator* navigator ) { return static_cast<NavigatorServiceWorker*>(Supplement<Navigator>::from(navi gator, supplementName())); } 52 static NavigatorServiceWorker* toNavigatorServiceWorker(Navigator* navigator ) { return static_cast<NavigatorServiceWorker*>(Supplement<Navigator>::from(navi gator, supplementName())); }
53 53
54 static ScriptPromise registerServiceWorker(ExecutionContext*, Navigator*, co nst String& pattern, const String& src, ExceptionState&); 54 static ScriptPromise registerServiceWorker(ExecutionContext*, Navigator*, co nst String& pattern, const String& src, ExceptionState&);
55 static ScriptPromise unregisterServiceWorker(ExecutionContext*, Navigator*, const String& pattern, ExceptionState&); 55 static ScriptPromise unregisterServiceWorker(ExecutionContext*, Navigator*, const String& pattern, ExceptionState&);
56 56
57 private: 57 private:
58 ScriptPromise registerServiceWorker(ExecutionContext*, const String& pattern , const String& src, ExceptionState&); 58 ScriptPromise registerServiceWorker(ExecutionContext*, const String& pattern , const String& src, ExceptionState&);
59 ScriptPromise unregisterServiceWorker(ExecutionContext*, const String& patte rn, ExceptionState&); 59 ScriptPromise unregisterServiceWorker(ExecutionContext*, const String& patte rn, ExceptionState&);
60 60
61 explicit NavigatorServiceWorker(Navigator*); 61 explicit NavigatorServiceWorker(Navigator*);
62 62
63 virtual void willDetachGlobalObjectFromFrame() OVERRIDE; 63 virtual void willDetachGlobalObjectFromFrame() OVERRIDE;
64 64
65 WebKit::WebServiceWorkerProvider* ensureProvider(); 65 blink::WebServiceWorkerProvider* ensureProvider();
66 66
67 static const char* supplementName(); 67 static const char* supplementName();
68 68
69 Navigator* m_navigator; 69 Navigator* m_navigator;
70 OwnPtr<WebKit::WebServiceWorkerProvider> m_provider; 70 OwnPtr<blink::WebServiceWorkerProvider> m_provider;
71 }; 71 };
72 72
73 } // namespace WebCore 73 } // namespace WebCore
74 74
75 #endif // NavigatorServiceWorker_h 75 #endif // NavigatorServiceWorker_h
OLDNEW
« no previous file with comments | « Source/modules/quota/WebStorageQuotaCallbacksImpl.cpp ('k') | Source/modules/serviceworkers/NavigatorServiceWorker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698