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

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

Issue 289793002: Rename sync and async file system access methods in blink. [blink] (1/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changes are made. 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(); 56 bool allowFileSystem();
57 void requestFileSystemAccess(const WebPermissionCallbacks&); 57 bool requestFileSystemAccessSync();
58 void requestFileSystemAccessAsync(const WebPermissionCallbacks&);
kinuko 2014/05/16 10:18:26 Hmm, do we need this?
Xi Han 2014/05/16 13:05:51 In this CL, I only do renaming, since this functio
kinuko 2014/05/19 08:38:04 It's fine since now it's landed, but I don't think
58 bool allowIndexedDB(const WebString& name); 59 bool allowIndexedDB(const WebString& name);
59 60
60 static const char* supplementName(); 61 static const char* supplementName();
61 static WorkerPermissionClient* from(WebCore::ExecutionContext&); 62 static WorkerPermissionClient* from(WebCore::ExecutionContext&);
62 63
63 virtual void trace(WebCore::Visitor* visitor) OVERRIDE { WillBeHeapSupplemen t<WebCore::WorkerClients>::trace(visitor); } 64 virtual void trace(WebCore::Visitor* visitor) OVERRIDE { WillBeHeapSupplemen t<WebCore::WorkerClients>::trace(visitor); }
64 65
65 private: 66 private:
66 explicit WorkerPermissionClient(PassOwnPtr<WebWorkerPermissionClientProxy>); 67 explicit WorkerPermissionClient(PassOwnPtr<WebWorkerPermissionClientProxy>);
67 68
68 OwnPtr<WebWorkerPermissionClientProxy> m_proxy; 69 OwnPtr<WebWorkerPermissionClientProxy> m_proxy;
69 }; 70 };
70 71
71 void providePermissionClientToWorker(WebCore::WorkerClients*, PassOwnPtr<WebWork erPermissionClientProxy>); 72 void providePermissionClientToWorker(WebCore::WorkerClients*, PassOwnPtr<WebWork erPermissionClientProxy>);
72 73
73 } // namespace blink 74 } // namespace blink
74 75
75 #endif // WorkerPermissionClient_h 76 #endif // WorkerPermissionClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698