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

Side by Side Diff: Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 474183002: Cleanup namespace usage in Source/web/*.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/web/RemoteFrameClient.h ('k') | Source/web/SpeechRecognitionClientProxy.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // This implements WebServiceWorkerContextProxy, which connects ServiceWorker's 53 // This implements WebServiceWorkerContextProxy, which connects ServiceWorker's
54 // WorkerGlobalScope and embedder/chrome, and implements ServiceWorker-specific 54 // WorkerGlobalScope and embedder/chrome, and implements ServiceWorker-specific
55 // events/upcall methods that are to be called by embedder/chromium, 55 // events/upcall methods that are to be called by embedder/chromium,
56 // e.g. onfetch. 56 // e.g. onfetch.
57 // 57 //
58 // An instance of this class is supposed to outlive until 58 // An instance of this class is supposed to outlive until
59 // workerThreadTerminated() is called by its corresponding 59 // workerThreadTerminated() is called by its corresponding
60 // WorkerGlobalScope. 60 // WorkerGlobalScope.
61 class ServiceWorkerGlobalScopeProxy FINAL 61 class ServiceWorkerGlobalScopeProxy FINAL
62 : public WebServiceWorkerContextProxy 62 : public WebServiceWorkerContextProxy
63 , public blink::WorkerReportingProxy { 63 , public WorkerReportingProxy {
64 WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeProxy); 64 WTF_MAKE_NONCOPYABLE(ServiceWorkerGlobalScopeProxy);
65 public: 65 public:
66 static PassOwnPtr<ServiceWorkerGlobalScopeProxy> create(WebEmbeddedWorkerImp l&, blink::ExecutionContext&, WebServiceWorkerContextClient&); 66 static PassOwnPtr<ServiceWorkerGlobalScopeProxy> create(WebEmbeddedWorkerImp l&, ExecutionContext&, WebServiceWorkerContextClient&);
67 virtual ~ServiceWorkerGlobalScopeProxy(); 67 virtual ~ServiceWorkerGlobalScopeProxy();
68 68
69 // WebServiceWorkerContextProxy overrides: 69 // WebServiceWorkerContextProxy overrides:
70 virtual void dispatchActivateEvent(int) OVERRIDE; 70 virtual void dispatchActivateEvent(int) OVERRIDE;
71 virtual void dispatchInstallEvent(int) OVERRIDE; 71 virtual void dispatchInstallEvent(int) OVERRIDE;
72 virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) OVERRID E; 72 virtual void dispatchFetchEvent(int, const WebServiceWorkerRequest&) OVERRID E;
73 virtual void dispatchMessageEvent(const WebString& message, const WebMessage PortChannelArray&) OVERRIDE; 73 virtual void dispatchMessageEvent(const WebString& message, const WebMessage PortChannelArray&) OVERRIDE;
74 virtual void dispatchPushEvent(int, const WebString& data) OVERRIDE; 74 virtual void dispatchPushEvent(int, const WebString& data) OVERRIDE;
75 virtual void dispatchSyncEvent(int) OVERRIDE; 75 virtual void dispatchSyncEvent(int) OVERRIDE;
76 76
77 // WorkerReportingProxy overrides: 77 // WorkerReportingProxy overrides:
78 virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) OVERRIDE; 78 virtual void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL) OVERRIDE;
79 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) OV ERRIDE; 79 virtual void reportConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) OV ERRIDE;
80 virtual void postMessageToPageInspector(const String&) OVERRIDE; 80 virtual void postMessageToPageInspector(const String&) OVERRIDE;
81 virtual void updateInspectorStateCookie(const String&) OVERRIDE; 81 virtual void updateInspectorStateCookie(const String&) OVERRIDE;
82 virtual void workerGlobalScopeStarted(blink::WorkerGlobalScope*) OVERRIDE; 82 virtual void workerGlobalScopeStarted(WorkerGlobalScope*) OVERRIDE;
83 virtual void workerGlobalScopeClosed() OVERRIDE; 83 virtual void workerGlobalScopeClosed() OVERRIDE;
84 virtual void willDestroyWorkerGlobalScope() OVERRIDE; 84 virtual void willDestroyWorkerGlobalScope() OVERRIDE;
85 virtual void workerThreadTerminated() OVERRIDE; 85 virtual void workerThreadTerminated() OVERRIDE;
86 86
87 private: 87 private:
88 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, blink::ExecutionContex t&, WebServiceWorkerContextClient&); 88 ServiceWorkerGlobalScopeProxy(WebEmbeddedWorkerImpl&, ExecutionContext&, Web ServiceWorkerContextClient&);
89 89
90 WebEmbeddedWorkerImpl& m_embeddedWorker; 90 WebEmbeddedWorkerImpl& m_embeddedWorker;
91 blink::ExecutionContext& m_executionContext; 91 ExecutionContext& m_executionContext;
92 92
93 WebServiceWorkerContextClient& m_client; 93 WebServiceWorkerContextClient& m_client;
94 94
95 blink::WorkerGlobalScope* m_workerGlobalScope; 95 WorkerGlobalScope* m_workerGlobalScope;
96 }; 96 };
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif // ServiceWorkerGlobalScopeProxy_h 100 #endif // ServiceWorkerGlobalScopeProxy_h
OLDNEW
« no previous file with comments | « Source/web/RemoteFrameClient.h ('k') | Source/web/SpeechRecognitionClientProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698