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

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

Issue 564713002: Web SQL: Remove more worker-related code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Windows build Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WorkerPermissionClient.h ('k') | public/web/WebWorkerPermissionClientProxy.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 30 matching lines...) Expand all
41 41
42 PassOwnPtrWillBeRawPtr<WorkerPermissionClient> WorkerPermissionClient::create(Pa ssOwnPtr<WebWorkerPermissionClientProxy> proxy) 42 PassOwnPtrWillBeRawPtr<WorkerPermissionClient> WorkerPermissionClient::create(Pa ssOwnPtr<WebWorkerPermissionClientProxy> proxy)
43 { 43 {
44 return adoptPtrWillBeNoop(new WorkerPermissionClient(proxy)); 44 return adoptPtrWillBeNoop(new WorkerPermissionClient(proxy));
45 } 45 }
46 46
47 WorkerPermissionClient::~WorkerPermissionClient() 47 WorkerPermissionClient::~WorkerPermissionClient()
48 { 48 {
49 } 49 }
50 50
51 bool WorkerPermissionClient::allowDatabase(const WebString& name, const WebStrin g& displayName, unsigned long estimatedSize)
52 {
53 if (!m_proxy)
54 return true;
55 return m_proxy->allowDatabase(name, displayName, estimatedSize);
56 }
57
58 bool WorkerPermissionClient::requestFileSystemAccessSync() 51 bool WorkerPermissionClient::requestFileSystemAccessSync()
59 { 52 {
60 if (!m_proxy) 53 if (!m_proxy)
61 return true; 54 return true;
62 return m_proxy->requestFileSystemAccessSync(); 55 return m_proxy->requestFileSystemAccessSync();
63 } 56 }
64 57
65 bool WorkerPermissionClient::allowIndexedDB(const WebString& name) 58 bool WorkerPermissionClient::allowIndexedDB(const WebString& name)
66 { 59 {
67 if (!m_proxy) 60 if (!m_proxy)
(...skipping 18 matching lines...) Expand all
86 { 79 {
87 } 80 }
88 81
89 void providePermissionClientToWorker(WorkerClients* clients, PassOwnPtr<WebWorke rPermissionClientProxy> proxy) 82 void providePermissionClientToWorker(WorkerClients* clients, PassOwnPtr<WebWorke rPermissionClientProxy> proxy)
90 { 83 {
91 ASSERT(clients); 84 ASSERT(clients);
92 WorkerPermissionClient::provideTo(*clients, WorkerPermissionClient::suppleme ntName(), WorkerPermissionClient::create(proxy)); 85 WorkerPermissionClient::provideTo(*clients, WorkerPermissionClient::suppleme ntName(), WorkerPermissionClient::create(proxy));
93 } 86 }
94 87
95 } // namespace blink 88 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WorkerPermissionClient.h ('k') | public/web/WebWorkerPermissionClientProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698