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

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

Issue 467573002: Cleanup namespace usage in Source/web/Web*.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/web/WebDevToolsFrontendImpl.h ('k') | Source/web/WebFileChooserCompletionImpl.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 19 matching lines...) Expand all
30 30
31 #ifndef WebEmbeddedWorkerImpl_h 31 #ifndef WebEmbeddedWorkerImpl_h
32 #define WebEmbeddedWorkerImpl_h 32 #define WebEmbeddedWorkerImpl_h
33 33
34 #include "public/web/WebContentSecurityPolicy.h" 34 #include "public/web/WebContentSecurityPolicy.h"
35 #include "public/web/WebEmbeddedWorker.h" 35 #include "public/web/WebEmbeddedWorker.h"
36 #include "public/web/WebEmbeddedWorkerStartData.h" 36 #include "public/web/WebEmbeddedWorkerStartData.h"
37 #include "public/web/WebFrameClient.h" 37 #include "public/web/WebFrameClient.h"
38 38
39 namespace blink { 39 namespace blink {
40 class WorkerScriptLoader;
41 class WorkerThread;
42 }
43
44 namespace blink {
45 40
46 class ServiceWorkerGlobalScopeProxy; 41 class ServiceWorkerGlobalScopeProxy;
47 class WebServiceWorkerNetworkProvider; 42 class WebServiceWorkerNetworkProvider;
48 class WebView; 43 class WebView;
44 class WorkerScriptLoader;
45 class WorkerThread;
49 46
50 class WebEmbeddedWorkerImpl FINAL 47 class WebEmbeddedWorkerImpl FINAL
51 : public WebEmbeddedWorker 48 : public WebEmbeddedWorker
52 , public WebFrameClient { 49 , public WebFrameClient {
53 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl); 50 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl);
54 public: 51 public:
55 WebEmbeddedWorkerImpl( 52 WebEmbeddedWorkerImpl(
56 PassOwnPtr<WebServiceWorkerContextClient>, 53 PassOwnPtr<WebServiceWorkerContextClient>,
57 PassOwnPtr<WebWorkerPermissionClientProxy>); 54 PassOwnPtr<WebWorkerPermissionClientProxy>);
58 virtual ~WebEmbeddedWorkerImpl(); 55 virtual ~WebEmbeddedWorkerImpl();
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // to WorkerContext. 92 // to WorkerContext.
96 OwnPtr<WebWorkerPermissionClientProxy> m_permissionClient; 93 OwnPtr<WebWorkerPermissionClientProxy> m_permissionClient;
97 94
98 // We retain ownership of this one which is for use on the 95 // We retain ownership of this one which is for use on the
99 // main thread only. 96 // main thread only.
100 OwnPtr<WebServiceWorkerNetworkProvider> m_networkProvider; 97 OwnPtr<WebServiceWorkerNetworkProvider> m_networkProvider;
101 98
102 // Kept around only while main script loading is ongoing. 99 // Kept around only while main script loading is ongoing.
103 OwnPtr<Loader> m_mainScriptLoader; 100 OwnPtr<Loader> m_mainScriptLoader;
104 101
105 RefPtr<blink::WorkerThread> m_workerThread; 102 RefPtr<WorkerThread> m_workerThread;
106 OwnPtr<LoaderProxy> m_loaderProxy; 103 OwnPtr<LoaderProxy> m_loaderProxy;
107 OwnPtr<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy; 104 OwnPtr<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy;
108 105
109 // 'shadow page' - created to proxy loading requests from the worker. 106 // 'shadow page' - created to proxy loading requests from the worker.
110 // Both WebView and WebFrame objects are close()'ed (where they're 107 // Both WebView and WebFrame objects are close()'ed (where they're
111 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they 108 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they
112 // are guaranteed to exist while this object is around. 109 // are guaranteed to exist while this object is around.
113 WebView* m_webView; 110 WebView* m_webView;
114 WebFrame* m_mainFrame; 111 WebFrame* m_mainFrame;
115 112
116 bool m_askedToTerminate; 113 bool m_askedToTerminate;
117 114
118 enum { 115 enum {
119 DontPauseAfterDownload, 116 DontPauseAfterDownload,
120 DoPauseAfterDownload, 117 DoPauseAfterDownload,
121 IsPausedAfterDownload 118 IsPausedAfterDownload
122 } m_pauseAfterDownloadState; 119 } m_pauseAfterDownloadState;
123 }; 120 };
124 121
125 } // namespace blink 122 } // namespace blink
126 123
127 #endif // WebEmbeddedWorkerImpl_h 124 #endif // WebEmbeddedWorkerImpl_h
OLDNEW
« no previous file with comments | « Source/web/WebDevToolsFrontendImpl.h ('k') | Source/web/WebFileChooserCompletionImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698