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

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

Issue 663893002: Clean up forward declarations in Source/web (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/WebViewImpl.h ('k') | Source/web/tests/FrameTestHelpers.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 WorkerPermissionClient_h 31 #ifndef WorkerPermissionClient_h
32 #define WorkerPermissionClient_h 32 #define WorkerPermissionClient_h
33 33
34 #include "core/workers/WorkerClients.h" 34 #include "core/workers/WorkerClients.h"
35 #include "wtf/Forward.h" 35 #include "wtf/Forward.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class ExecutionContext; 39 class ExecutionContext;
40 class WebFrame;
41 class WebPermissionCallbacks;
42 class WebString; 40 class WebString;
43 class WebWorkerPermissionClientProxy; 41 class WebWorkerPermissionClientProxy;
44 42
45 class WorkerPermissionClient final : public NoBaseWillBeGarbageCollectedFinalize d<WorkerPermissionClient>, public WillBeHeapSupplement<WorkerClients> { 43 class WorkerPermissionClient final : public NoBaseWillBeGarbageCollectedFinalize d<WorkerPermissionClient>, public WillBeHeapSupplement<WorkerClients> {
46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerPermissionClient); 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerPermissionClient);
47 public: 45 public:
48 static PassOwnPtrWillBeRawPtr<WorkerPermissionClient> create(PassOwnPtr<WebW orkerPermissionClientProxy>); 46 static PassOwnPtrWillBeRawPtr<WorkerPermissionClient> create(PassOwnPtr<WebW orkerPermissionClientProxy>);
49 virtual ~WorkerPermissionClient(); 47 virtual ~WorkerPermissionClient();
50 48
51 bool requestFileSystemAccessSync(); 49 bool requestFileSystemAccessSync();
52 bool allowIndexedDB(const WebString& name); 50 bool allowIndexedDB(const WebString& name);
53 51
54 static const char* supplementName(); 52 static const char* supplementName();
55 static WorkerPermissionClient* from(ExecutionContext&); 53 static WorkerPermissionClient* from(ExecutionContext&);
56 54
57 virtual void trace(Visitor* visitor) override { WillBeHeapSupplement<WorkerC lients>::trace(visitor); } 55 virtual void trace(Visitor* visitor) override { WillBeHeapSupplement<WorkerC lients>::trace(visitor); }
58 56
59 private: 57 private:
60 explicit WorkerPermissionClient(PassOwnPtr<WebWorkerPermissionClientProxy>); 58 explicit WorkerPermissionClient(PassOwnPtr<WebWorkerPermissionClientProxy>);
61 59
62 OwnPtr<WebWorkerPermissionClientProxy> m_proxy; 60 OwnPtr<WebWorkerPermissionClientProxy> m_proxy;
63 }; 61 };
64 62
65 void providePermissionClientToWorker(WorkerClients*, PassOwnPtr<WebWorkerPermiss ionClientProxy>); 63 void providePermissionClientToWorker(WorkerClients*, PassOwnPtr<WebWorkerPermiss ionClientProxy>);
66 64
67 } // namespace blink 65 } // namespace blink
68 66
69 #endif // WorkerPermissionClient_h 67 #endif // WorkerPermissionClient_h
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | Source/web/tests/FrameTestHelpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698