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

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

Issue 277353002: Use asynchronized api for file system request. [blink] (3/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Apply Kinuko's patch. Created 6 years, 7 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/LocalFileSystemClient.cpp ('k') | Source/web/WorkerPermissionClient.cpp » ('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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class WebWorkerPermissionClientProxy; 46 class WebWorkerPermissionClientProxy;
47 47
48 class WorkerPermissionClient FINAL : public NoBaseWillBeGarbageCollectedFinalize d<WorkerPermissionClient>, public WillBeHeapSupplement<WebCore::WorkerClients> { 48 class WorkerPermissionClient FINAL : public NoBaseWillBeGarbageCollectedFinalize d<WorkerPermissionClient>, public WillBeHeapSupplement<WebCore::WorkerClients> {
49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerPermissionClient); 49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerPermissionClient);
50 public: 50 public:
51 static PassOwnPtrWillBeRawPtr<WorkerPermissionClient> create(PassOwnPtr<WebW orkerPermissionClientProxy>); 51 static PassOwnPtrWillBeRawPtr<WorkerPermissionClient> create(PassOwnPtr<WebW orkerPermissionClientProxy>);
52 52
53 virtual ~WorkerPermissionClient(); 53 virtual ~WorkerPermissionClient();
54 54
55 bool allowDatabase(const WebString& name, const WebString& displayName, unsi gned long estimatedSize); 55 bool allowDatabase(const WebString& name, const WebString& displayName, unsi gned long estimatedSize);
56 bool allowFileSystem();
57 bool requestFileSystemAccessSync(); 56 bool requestFileSystemAccessSync();
58 void requestFileSystemAccessAsync(const WebPermissionCallbacks&);
59 bool allowIndexedDB(const WebString& name); 57 bool allowIndexedDB(const WebString& name);
60 58
61 static const char* supplementName(); 59 static const char* supplementName();
62 static WorkerPermissionClient* from(WebCore::ExecutionContext&); 60 static WorkerPermissionClient* from(WebCore::ExecutionContext&);
63 61
64 virtual void trace(WebCore::Visitor* visitor) OVERRIDE { WillBeHeapSupplemen t<WebCore::WorkerClients>::trace(visitor); } 62 virtual void trace(WebCore::Visitor* visitor) OVERRIDE { WillBeHeapSupplemen t<WebCore::WorkerClients>::trace(visitor); }
65 63
66 private: 64 private:
67 explicit WorkerPermissionClient(PassOwnPtr<WebWorkerPermissionClientProxy>); 65 explicit WorkerPermissionClient(PassOwnPtr<WebWorkerPermissionClientProxy>);
68 66
69 OwnPtr<WebWorkerPermissionClientProxy> m_proxy; 67 OwnPtr<WebWorkerPermissionClientProxy> m_proxy;
70 }; 68 };
71 69
72 void providePermissionClientToWorker(WebCore::WorkerClients*, PassOwnPtr<WebWork erPermissionClientProxy>); 70 void providePermissionClientToWorker(WebCore::WorkerClients*, PassOwnPtr<WebWork erPermissionClientProxy>);
73 71
74 } // namespace blink 72 } // namespace blink
75 73
76 #endif // WorkerPermissionClient_h 74 #endif // WorkerPermissionClient_h
OLDNEW
« no previous file with comments | « Source/web/LocalFileSystemClient.cpp ('k') | Source/web/WorkerPermissionClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698