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

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

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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return m_proxy->allowDatabase(name, displayName, estimatedSize); 57 return m_proxy->allowDatabase(name, displayName, estimatedSize);
58 } 58 }
59 59
60 bool WorkerPermissionClient::allowFileSystem() 60 bool WorkerPermissionClient::allowFileSystem()
61 { 61 {
62 if (!m_proxy) 62 if (!m_proxy)
63 return true; 63 return true;
64 return m_proxy->allowFileSystem(); 64 return m_proxy->allowFileSystem();
65 } 65 }
66 66
67 void WorkerPermissionClient::requestFileSystemAccess(const WebPermissionCallback s& callbacks) 67 bool WorkerPermissionClient::requestFileSystemAccessSync()
68 {
69 if (!m_proxy)
70 return true;
71 return m_proxy->requestFileSystemAccessSync();
72 }
73
74 void WorkerPermissionClient::requestFileSystemAccessAsync(const WebPermissionCal lbacks& callbacks)
68 { 75 {
69 if (!m_proxy) { 76 if (!m_proxy) {
70 WebPermissionCallbacks permissionCallbacks(callbacks); 77 WebPermissionCallbacks permissionCallbacks(callbacks);
71 permissionCallbacks.doAllow(); 78 permissionCallbacks.doAllow();
72 return; 79 return;
73 } 80 }
74 m_proxy->requestFileSystemAccess(callbacks); 81 m_proxy->requestFileSystemAccessAsync(callbacks);
75 } 82 }
76 83
77 bool WorkerPermissionClient::allowIndexedDB(const WebString& name) 84 bool WorkerPermissionClient::allowIndexedDB(const WebString& name)
78 { 85 {
79 if (!m_proxy) 86 if (!m_proxy)
80 return true; 87 return true;
81 return m_proxy->allowIndexedDB(name); 88 return m_proxy->allowIndexedDB(name);
82 } 89 }
83 90
84 const char* WorkerPermissionClient::supplementName() 91 const char* WorkerPermissionClient::supplementName()
(...skipping 13 matching lines...) Expand all
98 { 105 {
99 } 106 }
100 107
101 void providePermissionClientToWorker(WorkerClients* clients, PassOwnPtr<WebWorke rPermissionClientProxy> proxy) 108 void providePermissionClientToWorker(WorkerClients* clients, PassOwnPtr<WebWorke rPermissionClientProxy> proxy)
102 { 109 {
103 ASSERT(clients); 110 ASSERT(clients);
104 WorkerPermissionClient::provideTo(*clients, WorkerPermissionClient::suppleme ntName(), WorkerPermissionClient::create(proxy)); 111 WorkerPermissionClient::provideTo(*clients, WorkerPermissionClient::suppleme ntName(), WorkerPermissionClient::create(proxy));
105 } 112 }
106 113
107 } // namespace blink 114 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698